]> git.ipfire.org Git - pakfire.git/commitdiff
pakfire-builder: Make --disable-snapshot a switch for build
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 27 Oct 2022 15:38:27 +0000 (15:38 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 27 Oct 2022 15:38:27 +0000 (15:38 +0000)
There is no point in having this as a global configuration option.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/pakfire-builder.in

index 5e293cfc53c5e04789402a4749ab125313fb1eb2..08a5d9806919afe4e1a30ed3940c9a2e66a36986 100644 (file)
@@ -45,8 +45,6 @@ class Cli(object):
                        help=_("Enable debug mode"))
                parser.add_argument("--distro", nargs="?", default="ipfire3", # XXX for now
                        help=_("Choose the distribution configuration to use for build"))
-               parser.add_argument("--disable-snapshot", action="store_true",
-                       help=_("Disable using snapshots"))
 
                # build
                build = subparsers.add_parser("build", help=_("Build one or more packages"))
@@ -61,6 +59,8 @@ class Cli(object):
                        help=_("Run a shell after a successful build"))
                build.add_argument("--skip-install-test", action="store_true",
                        help=_("Do not perform the install test"))
+               build.add_argument("--disable-snapshot", action="store_true",
+                       help=_("Disable using snapshots"))
 
                # clean
                clean = subparsers.add_parser("clean", help=_("Cleanup all temporary files"))