#63 OSError: [Errno 17] File exists
Closed: Fixed Opened by jsteffan.

total = float(len(polist))

i = 0

for po in polist:

os.link(po.localPkg(), pkgdir + "/" + os.path.basename(po.localPkg()))

i += 1

pbar.set_fraction(i/total)

_runGtkMain()

os.link() fails on an existing file; this really, really needs to be fixed


line 577 revisorgui.py

line 577 revisorgui.py

Produced it again with a fresh run and a rm -rf /var/tmp/*

Produced it again with a fresh run and a rm -rf /var/tmp/*

Replying to [comment:3 jsteffan]:

Produced it again with a fresh run and a rm -rf /var/tmp/*

Either way, if the files (links) exist, we should fail and empty out before continuing, because we may have other files in there that we don't want.

if os.access("/path/to/link",os.R_OK):
# Do some failing with some alerting
else:
# Link the file

Replying to [comment:3 jsteffan]:

Produced it again with a fresh run and a rm -rf /var/tmp/*

Either way, if the files (links) exist, we should fail and empty out before continuing, because we may have other files in there that we don't want.

if os.access("/path/to/link",os.R_OK):
# Do some failing with some alerting
else:
# Link the file

added shutil.rmtree(pkgdir,ignore_errors=True); os.makedirs(pkgdir) if the pkgdir already exists.

added shutil.rmtree(pkgdir,ignore_errors=True); os.makedirs(pkgdir) if the pkgdir already exists.

Milestone Beta release on F7 deleted

Milestone Beta release on F7 deleted

Metadata Update from @jsteffan:
- Issue assigned to jsteffan

Metadata