This commit is contained in:
Dimitris Zlatanidis 2015-07-19 20:07:10 +03:00
parent cb35d17182
commit 109cdbe5dc

View file

@ -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 ""