From: Michael Tremer Date: Tue, 18 May 2021 15:30:26 +0000 (+0000) Subject: cli: Allow passing the target architecture X-Git-Tag: 0.9.28~1285^2~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f4c668a914a1a39f686eb2328d29f317e07251e;p=pakfire.git cli: Allow passing the target architecture This switch enabled Pakfire to bootstrap for a different architecture than the host architecture. Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/cli.py b/src/pakfire/cli.py index 01576205f..e9c1a9bde 100644 --- a/src/pakfire/cli.py +++ b/src/pakfire/cli.py @@ -57,6 +57,8 @@ class Cli(object): # Add common arguments self._add_common_arguments(parser) + parser.add_argument("--arch", "-a", nargs="?", + help=_("Run pakfire for the given architecture")) parser.add_argument("--root", metavar="PATH", default="/", help=_("The path where pakfire should operate in")) @@ -200,6 +202,7 @@ class Cli(object): def pakfire(self, ns): p = base.Pakfire( + arch=ns.arch, conf=ns.config, path=ns.root if "root" in ns else self.default_path, offline=ns.offline,