comparison bin/treepkgbuilder.py @ 213:98c5aab790bb

Add --bind-mount option to bin/treepkgbuilder.py's login command and a corresponding parameter to the login method of the PBuilder class
author Bernhard Herzog <bh@intevation.de>
date Fri, 28 Nov 2008 15:36:10 +0000
parents 63f73bb9c459
children f4a636ed5d07
comparison
equal deleted inserted replaced
212:4d6c3431face 213:98c5aab790bb
122 122
123 class LoginCommand(Command): 123 class LoginCommand(Command):
124 124
125 names = ("login",) 125 names = ("login",)
126 126
127 def run(self): 127 def create_parser(self):
128 self.get_builder().login() 128 parser = super(LoginCommand, self).create_parser()
129 parser.set_defaults(bind_mount=[])
130 parser.add_option("--bind-mount", action="append",
131 help=("Directories to bind-mount in the chroot"
132 " environment."))
133 return parser
134
135
136 def run(self):
137 self.get_builder().login(bindmounts=self.opts.bind_mount)
129 138
130 139
131 class BuildCommand(Command): 140 class BuildCommand(Command):
132 141
133 names = ("build",) 142 names = ("build",)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)