diff options
author | Sebastian Dziallas <sebastian@when.com> | 2009-03-19 20:37:01 (GMT) |
---|---|---|
committer | Sebastian Dziallas <sebastian@when.com> | 2009-03-19 20:37:01 (GMT) |
commit | 7ba8e3693bd9314f17cbd840d603423020fd6eb2 (patch) | |
tree | 9b185cd5e26e15a924577df2edf354aa1140b01e /build | |
parent | 6ff932e52c911db8546ae7ccf6bc42cc4480271e (diff) |
fix clean up in build script
Diffstat (limited to 'build')
-rwxr-xr-x | build | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -7,6 +7,7 @@ from time import gmtime, strftime import imgcreate import appcreate +import shutil import tarfile base_dir = os.path.dirname(__file__) @@ -58,7 +59,7 @@ def main(): creator.install() creator.configure() creator.unmount() - creator.package(destdir=appliances_dir, "none", "") + creator.package(appliances_dir, "none", "") except imgcreate.CreatorError, e: logging.error("Unable to create appliance : %s" % e) return 1 @@ -67,11 +68,11 @@ def main(): os.chdir('./appliances') - tar = tarfile.open(appliance_name, 'w:gz') + tar = tarfile.open('%s.tar.gz' % appliance_name, 'w:gz') tar.add('soas2-appliance') tar.close() - os.rmdir('soas2-appliance') + shutil.rmtree('soas2-appliance') return 0 |