[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. eda668423fa87898c59d1075118693714aa5a053

Andreas Beckmann debian at abeckmann.de
Fri Dec 23 10:27:19 UTC 2011


The following commit has been merged in the master branch:
commit 9f9405bfd8f22c61cfc3b4cfc5b374a41b2b5325
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Sun Nov 6 15:00:57 2011 +0100

    exclude /tmp/scripts from tarball
    
    exclude /tmp/scripts from the tarball to allow the tarball to be used with
    different custom scripts later on - they will be copied over later anyway,
    but the old ones won't be removed
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/piuparts.py b/piuparts.py
index 5e1047f..14838da 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -778,7 +778,7 @@ class Chroot:
         self.run(["apt-get", "clean"])
         logging.debug("Saving %s to %s." % (self.name, result))
 
-        run(['tar', '--exclude', './proc/*', '-czf', result, '-C', self.name, './'])
+        run(['tar', '--exclude', './proc/*', '-czf', result, '--exclude', 'tmp/scripts', '-C', self.name, './'])
 
     def unpack_from_tgz(self, tarball):
         """Unpack a tarball to a chroot."""

-- 
piuparts git repository



More information about the Piuparts-commits mailing list