From 983f1a7dc1046ed3bfcbfa3dca810e6806c1d25d Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 10 Apr 2011 23:28:27 +0200 Subject: [PATCH] Fix shell command on CLI. --- pakfire/builder.py | 6 +++++- pakfire/cli.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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 -- 2.39.5