Update class

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2022-04-28 20:44:11 +03:00
parent 94ec376912
commit 77ba2cf63a

View file

@ -46,11 +46,11 @@ class GetFromInstalled:
"""
if self.find:
return split_package(self.find)[1]
return ""
return self.find
def name(self):
"""Return installed package name
"""
if self.find:
return self.package
return ""
return self.find