]> git.ipfire.org Git - pakfire.git/commitdiff
Fix shell command on CLI.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 10 Apr 2011 21:28:27 +0000 (23:28 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 10 Apr 2011 21:28:27 +0000 (23:28 +0200)
pakfire/builder.py
pakfire/cli.py

index c3cf832b2778bc5fda4844b361e43d24e54f755e..217d84fd3b0901a1f397a6b713cd01076ea377d0 100644 (file)
@@ -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 = {
index 35a1ef5273efda366c9ef879514fed85dee4d71e..d4c1864084219723baa65cbc208d7ed2b0126625 100644 (file)
@@ -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