Clean up splittree output

This commit is contained in:
jkeating@dhcp83-49.boston.redhat.com 2007-01-17 10:54:09 -05:00 committed by Jesse Keating
parent e6187e19bb
commit ea82c15957

View File

@ -23,10 +23,11 @@ class Pungi:
def __init__(self, config):
self.config = config
self.prodpath = 'Fedora' # Probably should be defined elsewhere
self.topdir = os.path.join(self.config.get('default', 'destdir'),
self.config.get('default', 'version'),
self.config.get('default', 'arch'),
'os')
self.archdir = os.path.join(self.config.get('default', 'destdir'),
self.config.get('default', 'version'),
self.config.get('default', 'arch'))
self.topdir = os.path.join(self.archdir, 'os')
self.workdir = os.path.join(self.config.get('default', 'destdir'),
'work',
self.config.get('default', 'arch'))
@ -255,3 +256,9 @@ class Pungi:
os.system('cd %s; sha1sum %s >> SHA1SUM' % (isodir, isoname))
# Do some clean up
dirs = os.listdir(self.archdir)
for dir in dirs:
if dir.startswith('os-disc'):
shutil.move(os.path.join(self.archdir, dir), os.path.join(self.workdir, dir))