oops, forgot to check before removing
This commit is contained in:
parent
6e9172720a
commit
bc1a73ace4
@ -191,7 +191,8 @@ class Gather(yum.YumBase):
|
|||||||
if not self.config.has_option('default', 'quiet'):
|
if not self.config.has_option('default', 'quiet'):
|
||||||
self.logger.info("%s already exists and appears to be complete" % local)
|
self.logger.info("%s already exists and appears to be complete" % local)
|
||||||
target=os.path.join(pkgdir, os.path.basename(remote))
|
target=os.path.join(pkgdir, os.path.basename(remote))
|
||||||
os.remove(target) # avoid traceback after interrupted download
|
if os.path.exists(target):
|
||||||
|
os.remove(target) # avoid traceback after interrupted download
|
||||||
os.link(local, target)
|
os.link(local, target)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user