mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-28 19:58:18 +01:00
fix install null pkgs in /tmp
This commit is contained in:
parent
709a7c0728
commit
fad5621127
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue