fix number of string format arguments
This commit is contained in:
parent
a321713489
commit
03ce743951
|
@ -65,10 +65,10 @@ class Apt:
|
||||||
return "%s is not a valid distribution: %s" % (distro, ", ".join(self.distros))
|
return "%s is not a valid distribution: %s" % (distro, ", ".join(self.distros))
|
||||||
pkg = _pkg
|
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 not data:
|
||||||
if filelookup:
|
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:
|
||||||
if data[0] == 'sh:': # apt-file isn't installed
|
if data[0] == 'sh:': # apt-file isn't installed
|
||||||
self.log.error("PackageInfo/packages: apt-file is not installed")
|
self.log.error("PackageInfo/packages: apt-file is not installed")
|
||||||
|
|
Loading…
Reference in New Issue