]> git.ipfire.org Git - pakfire.git/blobdiff - python/pakfire/cli.py
Merge branch 'master' of ssh://git.ipfire.org/pub/git/oddments/pakfire
[pakfire.git] / python / pakfire / cli.py
index 492e5ca7f90837e87830e6c32673ced9f565db97..761ade023c74c227eb5065fd4d2aab57d4de5fa8 100644 (file)
@@ -404,6 +404,8 @@ class CliBuilder(Cli):
                        help=_("Path were the output files should be copied to."))
                sub_build.add_argument("-m", "--mode", nargs="?", default="development",
                        help=_("Mode to run in. Is either 'release' or 'development' (default)."))
+               sub_build.add_argument("--after-shell", action="store_true",
+                       help=_("Run a shell after a successful build."))
 
        def parse_command_shell(self):
                # Implement the "shell" command.
@@ -450,7 +452,7 @@ class CliBuilder(Cli):
 
                pakfire.build(pkg, builder_mode=self.args.mode,
                        distro_config=distro_config, resultdirs=[self.args.resultdir,],
-                       shell=True, **self.pakfire_args)
+                       shell=True, after_shell=self.args.after_shell, **self.pakfire_args)
 
        def handle_shell(self):
                pkg = None