comparison bin/treepkgbuilder.py @ 296:ce7be2fb93ee

Make it easy to install extra binaries into subdirectories of extra-pkg. This makes it easier to manage the extra-pkg directory when it contains manually added packages and automatically added packages from one of the package tracks by putting the automatically added packages into extra-pkg/auto and manually added packages into extra-pkg/manual. To this end, add parameter subdir to PBuilder.add_binaries_to_extra_pkg method with default value "auto". Adapt the test case accordingly. Also add the command line argument --subdir to bin/treepkgbuilder.py add-binaries command, this time with default value "manual".
author Bernhard Herzog <bh@intevation.de>
date Wed, 18 Nov 2009 18:11:22 +0000
parents 1fcdffbeb9de
children f06f707d9fda
comparison
equal deleted inserted replaced
295:dcdf23dece2d 296:ce7be2fb93ee
83 83
84 class AddBinariesCommand(Command): 84 class AddBinariesCommand(Command):
85 85
86 names = ("add-binaries",) 86 names = ("add-binaries",)
87 87
88 def run(self): 88 def create_parser(self):
89 builder = self.get_builder() 89 parser = super(AddBinariesCommand, self).create_parser()
90 builder.add_binaries_to_extra_pkg(self.rest) 90 parser.set_defaults(subdir="manual")
91 parser.add_option("--subdir",
92 help=("The subdirectory of extra-pkg into which"
93 " the packages are to be copied"
94 " (default 'manual')."))
95 return parser
96
97
98 def run(self):
99 builder = self.get_builder()
100 builder.add_binaries_to_extra_pkg(self.rest,
101 subdirectory=self.opts.subdir)
91 102
92 103
93 class UpdateCommand(Command): 104 class UpdateCommand(Command):
94 105
95 names = ("update",) 106 names = ("update",)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)