fix install null pkgs in /tmp

This commit is contained in:
Dimitris Zlatanidis 2014-10-11 05:27:17 +03:00
parent 709a7c0728
commit fad5621127

View file

@ -159,7 +159,11 @@ class QueuePkgs(object):
for pkg in packages:
# check if package exist in repository
find = find_package(pkg, tmp)
find = max(find)
try:
find = max(find)
except ValueError:
print("Package '{0}' not found in /tmp\n".format(pkg))
pass
if pkg in find:
binary = "{0}{1}".format(tmp, find)
PackageManager(binary.split()).install()