From 03ce74395176a101362f184611e66ba4674c927d Mon Sep 17 00:00:00 2001 From: tsimpson Date: Thu, 12 Apr 2012 20:49:50 +0100 Subject: [PATCH] fix number of string format arguments --- PackageInfo/packages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PackageInfo/packages.py b/PackageInfo/packages.py index 82a4f31..7d6b10e 100644 --- a/PackageInfo/packages.py +++ b/PackageInfo/packages.py @@ -65,10 +65,10 @@ class Apt: return "%s is not a valid distribution: %s" % (distro, ", ".join(self.distros)) pkg = _pkg - data = commands.getoutput(self.aptcommand % (distro, distro, distro, 'search -n', pkg)) + data = commands.getoutput(self.aptcommand % (distro, distro, distro, distro, 'search -n', pkg)) if not data: if filelookup: - data = commands.getoutput(self.aptfilecommand % (distro, distro, pkg)).split() + data = commands.getoutput(self.aptfilecommand % (distro, distro, distro, pkg)).split() if data: if data[0] == 'sh:': # apt-file isn't installed self.log.error("PackageInfo/packages: apt-file is not installed")