mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-10 20:48:40 +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:
|
for pkg in packages:
|
||||||
# check if package exist in repository
|
# check if package exist in repository
|
||||||
find = find_package(pkg, tmp)
|
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:
|
if pkg in find:
|
||||||
binary = "{0}{1}".format(tmp, find)
|
binary = "{0}{1}".format(tmp, find)
|
||||||
PackageManager(binary.split()).install()
|
PackageManager(binary.split()).install()
|
||||||
|
|
Loading…
Add table
Reference in a new issue