From: Michael Tremer Date: Sun, 10 Apr 2011 21:28:27 +0000 (+0200) Subject: Fix shell command on CLI. X-Git-Tag: 0.9.3~47^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=983f1a7dc1046ed3bfcbfa3dca810e6806c1d25d;p=pakfire.git Fix shell command on CLI. --- diff --git a/pakfire/builder.py b/pakfire/builder.py index c3cf832b2..217d84fd3 100644 --- a/pakfire/builder.py +++ b/pakfire/builder.py @@ -40,7 +40,11 @@ class Builder(object): self.path = self.pakfire.path # Open the package. - self.pkg = packages.open(self.pakfire, None, pkg) + if pkg: + self.pkg = packages.open(self.pakfire, None, pkg) + else: + # No package was given. + self.pkg = None # XXX need to make this configureable self.settings = { diff --git a/pakfire/cli.py b/pakfire/cli.py index 35a1ef527..d4c186408 100644 --- a/pakfire/cli.py +++ b/pakfire/cli.py @@ -370,7 +370,7 @@ class CliBuilder(Cli): "arch" : self.args.arch, } - pakfire.shell(pkg, distro_config, **self.pakfire_args) + pakfire.shell(pkg, distro_config=distro_config, **self.pakfire_args) def handle_dist(self): # Get the packages from the command line options