#107 The almighty wonderful errno 17; Fun
Closed: Fixed None Opened 17 years ago 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

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

8 years ago

Log in to comment on this ticket.

Metadata