Mercurial > treepkg
comparison 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 |
comparison
equal
deleted
inserted
replaced
244:a05cbf80dec9 | 245:21da92cea416 |
---|---|
128 parser = super(LoginCommand, self).create_parser() | 128 parser = super(LoginCommand, self).create_parser() |
129 parser.set_defaults(bind_mount=[]) | 129 parser.set_defaults(bind_mount=[]) |
130 parser.add_option("--bind-mount", action="append", | 130 parser.add_option("--bind-mount", action="append", |
131 help=("Directories to bind-mount in the chroot" | 131 help=("Directories to bind-mount in the chroot" |
132 " environment.")) | 132 " environment.")) |
133 return parser | 133 parser.add_option("--save-after-login", action="store_true", |
134 | 134 help="Copy changes back to the tarball.") |
135 | 135 return parser |
136 def run(self): | 136 |
137 self.get_builder().login(bindmounts=self.opts.bind_mount) | 137 |
138 def run(self): | |
139 self.get_builder().login(bindmounts=self.opts.bind_mount, | |
140 save_after_login=self.opts.save_after_login) | |
138 | 141 |
139 | 142 |
140 class BuildCommand(Command): | 143 class BuildCommand(Command): |
141 | 144 |
142 names = ("build",) | 145 names = ("build",) |