From 3a8ebda85c48473655472e97ca4fb5597c4e6737 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 24 Nov 2022 11:13:23 +0000 Subject: [PATCH] pakfire-builder: shell: Add --disable-snapshot Signed-off-by: Michael Tremer --- src/scripts/pakfire-builder.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/pakfire-builder.in b/src/scripts/pakfire-builder.in index ba8e82cfc..c7d57e3e6 100644 --- a/src/scripts/pakfire-builder.in +++ b/src/scripts/pakfire-builder.in @@ -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: -- 2.39.5