specfile: Uninstalled packages cannot have update actions
This commit is contained in:
@@ -337,6 +337,9 @@ class Package:
|
|||||||
|
|
||||||
if old_release is None:
|
if old_release is None:
|
||||||
installdb = pisi.db.installdb.InstallDB()
|
installdb = pisi.db.installdb.InstallDB()
|
||||||
|
if not installdb.has_package(self.name):
|
||||||
|
return {}
|
||||||
|
|
||||||
version, old_release, build = installdb.get_version(self.name)
|
version, old_release, build = installdb.get_version(self.name)
|
||||||
|
|
||||||
actions = {}
|
actions = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user