Remove previous splittree workdirs when reusing a tree.

This commit is contained in:
Jesse Keating 2007-12-03 23:09:47 -05:00 committed by Jesse Keating
parent 91a9edceb7
commit d9a840c863

View File

@ -577,6 +577,8 @@ cost=500
for directory in dirs:
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))
self.logger.info("CreateIsos is done.")