]> git.ipfire.org Git - pakfire.git/commitdiff
Fix for shell command when a package name is provided.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Mar 2011 17:37:44 +0000 (18:37 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Mar 2011 17:37:44 +0000 (18:37 +0100)
pakfire/cli.py

index 84edbfb6c1074cc818c9a0150fcfab2906fb164e..4f1693c3b2c6880becbc61a1c636cc5159ed3f8d 100644 (file)
@@ -293,7 +293,7 @@ class CliBuilder(Cli):
 
                # Get the package descriptor from the command line options
                if self.args.package:
-                       pkg = self.args.package[0]
+                       pkg = self.args.package
 
                # Check, if we got a regular file
                if pkg and os.path.exists(pkg):