]> git.ipfire.org Git - pakfire.git/commitdiff
pakfire-builder: shell: Add --disable-snapshot
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 24 Nov 2022 11:13:23 +0000 (11:13 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 24 Nov 2022 11:17:15 +0000 (11:17 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/pakfire-builder.in

index ba8e82cfc6f78aa3ba7a2dfa07d02037f2e7523b..c7d57e3e6f40df3405036abbcc8b00397a54b246 100644 (file)
@@ -134,6 +134,8 @@ class Cli(object):
 
                # shell
                shell = subparsers.add_parser("shell", help=_("Go into a build shell"))
+               shell.add_argument("--disable-snapshot", action="store_true",
+                       help=_("Disable using snapshots"))
                shell.add_argument("--install", nargs="*",
                        help=_("Install additional packages"),
                )
@@ -362,7 +364,7 @@ class Cli(object):
                p = self.pakfire(ns)
 
                try:
-                       p.shell(install=ns.install)
+                       p.shell(disable_snapshot=ns.disable_snapshot, install=ns.install)
 
                # Exit program with the shell's exit code
                except pakfire.errors.CommandExecutionError as e: