From fad56211272460ca531b305f9081e33050b3a7ff Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sat, 11 Oct 2014 05:27:17 +0300 Subject: [PATCH] fix install null pkgs in /tmp --- slpkg/queue.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/slpkg/queue.py b/slpkg/queue.py index 5f8e951a..9f7ecd3d 100755 --- a/slpkg/queue.py +++ b/slpkg/queue.py @@ -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()