From: Michael Tremer Date: Thu, 10 Mar 2011 17:37:44 +0000 (+0100) Subject: Fix for shell command when a package name is provided. X-Git-Tag: 0.9.3~70^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad1b844f7fe14074eaa23ee843e2128d80e80473;p=pakfire.git Fix for shell command when a package name is provided. --- diff --git a/pakfire/cli.py b/pakfire/cli.py index 84edbfb6c..4f1693c3b 100644 --- a/pakfire/cli.py +++ b/pakfire/cli.py @@ -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):