From 4f08c65da75c67f7f9e7ca3fd379fbbb2965e8c7 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 27 Oct 2012 23:42:01 +0200 Subject: [PATCH] Allow passing --distro on pakfire-builder. --- python/pakfire/cli.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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", -- 2.39.5