mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-28 19:58:18 +01:00
Fix get installed version
This commit is contained in:
parent
be32965fd8
commit
099993619d
1 changed files with 3 additions and 1 deletions
|
@ -33,5 +33,7 @@ def get_installed_version(package):
|
|||
"""
|
||||
find = find_package(package + _meta_.sp, _meta_.pkg_path)
|
||||
if find:
|
||||
return _meta_.sp + split_package(find[0])[1]
|
||||
name = split_package(find[0])[0]
|
||||
if package == name:
|
||||
return _meta_.sp + split_package(find[0])[1]
|
||||
return ""
|
||||
|
|
Loading…
Add table
Reference in a new issue