diff bin/treepkgbuilder.py @ 245:21da92cea416

Add --save-after-login option to bin/treepkgbuilder.py and corresponding keyword argument to PBuilder.login
author Bernhard Herzog <bh@intevation.de>
date Tue, 24 Feb 2009 18:28:25 +0000
parents f4a636ed5d07
children 1fcdffbeb9de
line wrap: on
line diff
--- a/bin/treepkgbuilder.py	Wed Jan 21 14:02:01 2009 +0000
+++ b/bin/treepkgbuilder.py	Tue Feb 24 18:28:25 2009 +0000
@@ -130,11 +130,14 @@
         parser.add_option("--bind-mount", action="append",
                           help=("Directories to bind-mount in the chroot"
                                 " environment."))
+        parser.add_option("--save-after-login", action="store_true",
+                          help="Copy changes back to the tarball.")
         return parser
 
 
     def run(self):
-        self.get_builder().login(bindmounts=self.opts.bind_mount)
+        self.get_builder().login(bindmounts=self.opts.bind_mount,
+                                 save_after_login=self.opts.save_after_login)
 
 
 class BuildCommand(Command):
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)