#107 The almighty wonderful errno 17; Fun
Closed: Fixed Opened by jsteffan.

Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/revisor/ready_screen.py", line 127, in button_forward_clicked
self.gui.displayBuildMedia()
File "/usr/lib/python2.5/site-packages/revisor/gui.py", line 249, in displayBuildMedia
self.BuildMedia.start()
File "/usr/lib/python2.5/site-packages/revisor/build_media.py", line 69, in start
self.base.lift_off()
File "/usr/lib/python2.5/site-packages/revisor/base.py", line 404, in lift_off
self.buildLiveMedia()
File "/usr/lib/python2.5/site-packages/revisor/base.py", line 693, in buildLiveMedia
if not liveImage.setup(livemedia_targetsize, build_dir="/var/tmp/revisor-livecd", yum_installroot=self.cfg.yumobj.conf.installroot, yum_cachedir=self.cfg.yumobj.conf.cachedir):
File "/usr/lib/python2.5/site-packages/revisor/pilgrim.py", line 386, in setup
os.makedirs(self.build_dir)
File "/usr/lib/python2.5/os.py", line 166, in makedirs
mkdir(name, mode)
OSError: [Errno 17] File exists: '/var/tmp/revisor-livecd'


Proposal to fix this:

Have a base routine that checks directories and informs the user to either move them or delete them.

Proposal to fix this:

Have a base routine that checks directories and informs the user to either move them or delete them.

That would work. Do we want to move to using some auto-generated random dir in the base dir /var/tmp/whatever (or whatever is configured)... ?

That would work. Do we want to move to using some auto-generated random dir in the base dir /var/tmp/whatever (or whatever is configured)... ?

I don't think that makes things any more intuitive to users.

There's two seperate things here too. If we set the destination directory, this does not involve the working directory... I'll figure it out and create some code

I don't think that makes things any more intuitive to users.

There's two seperate things here too. If we set the destination directory, this does not involve the working directory... I'll figure it out and create some code

Check http://www.kanarip.com/~fedoraunity/checking_directories.png and http://www.kanarip.com/~fedoraunity/checking_directories.txt, or commit e7ce95206a734210bf352cacb7053ebfb09c6774

Check http://www.kanarip.com/~fedoraunity/checking_directories.png and http://www.kanarip.com/~fedoraunity/checking_directories.txt, or commit e7ce95206a734210bf352cacb7053ebfb09c6774

Metadata Update from @jsteffan:
- Issue assigned to kanarip
- Issue set to the milestone: 2.0.3 Release

Metadata