From: Michael Tremer Date: Sat, 27 Oct 2012 21:42:01 +0000 (+0200) Subject: Allow passing --distro on pakfire-builder. X-Git-Tag: 0.9.24~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f08c65da75c67f7f9e7ca3fd379fbbb2965e8c7;p=pakfire.git Allow passing --distro on pakfire-builder. --- diff --git a/python/pakfire/cli.py b/python/pakfire/cli.py index 55e29a358..e7da9ccb5 100644 --- a/python/pakfire/cli.py +++ b/python/pakfire/cli.py @@ -450,8 +450,17 @@ class CliBuilder(Cli): "offline" : self.args.offline, } + if hasattr(self.args, "distro"): + ret["distro_name"] = self.args.distro + return ret + def parse_common_arguments(self, *args, **kwargs): + Cli.parse_common_arguments(self, *args, **kwargs) + + self.parser.add_argument("--distro", nargs="?", + help=_("Choose the distribution configuration to use for build")) + def parse_command_update(self): # Implement the "update" command. sub_update = self.sub_commands.add_parser("update",