Remove previous splittree workdirs when reusing a tree.
This commit is contained in:
parent
91a9edceb7
commit
d9a840c863
@ -577,6 +577,8 @@ cost=500
|
|||||||
|
|
||||||
for directory in dirs:
|
for directory in dirs:
|
||||||
if directory.startswith('os-disc') or directory.startswith('SRPM-disc'):
|
if directory.startswith('os-disc') or directory.startswith('SRPM-disc'):
|
||||||
|
if os.path.exists(os.path.join(self.workdir, directory)):
|
||||||
|
shutil.rmtree(os.path.join(self.workdir, directory))
|
||||||
shutil.move(os.path.join(self.archdir, directory), os.path.join(self.workdir, directory))
|
shutil.move(os.path.join(self.archdir, directory), os.path.join(self.workdir, directory))
|
||||||
|
|
||||||
self.logger.info("CreateIsos is done.")
|
self.logger.info("CreateIsos is done.")
|
||||||
|
Loading…
Reference in New Issue
Block a user