mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-15 03:41:16 +01:00
Fix self
This commit is contained in:
parent
cb35d17182
commit
109cdbe5dc
1 changed files with 2 additions and 2 deletions
|
@ -39,9 +39,9 @@ class GetFromInstalled(object):
|
|||
def version(self):
|
||||
"""Get version from installed packages
|
||||
"""
|
||||
find = find_package(self.package + _meta_.sp, _meta_.pkg_path)
|
||||
find = find_package(self.package + self.meta.sp, _meta_.pkg_path)
|
||||
if find:
|
||||
name = split_package(find[0])[0]
|
||||
if self.package == name:
|
||||
return _meta_.sp + split_package(find[0])[1]
|
||||
return self.meta.sp + split_package(find[0])[1]
|
||||
return ""
|
||||
|
|
Loading…
Reference in a new issue