Check package before getting version
This commit is contained in:
@@ -23,6 +23,9 @@ installdb = pisi.db.installdb.InstallDB()
|
|||||||
historydb = pisi.db.historydb.HistoryDB()
|
historydb = pisi.db.historydb.HistoryDB()
|
||||||
|
|
||||||
def __pkg_already_installed(name, pkginfo):
|
def __pkg_already_installed(name, pkginfo):
|
||||||
|
if not installdb.has_package(name):
|
||||||
|
return False
|
||||||
|
|
||||||
ver, rel, build = str(pkginfo).split("-")
|
ver, rel, build = str(pkginfo).split("-")
|
||||||
if build == '?':
|
if build == '?':
|
||||||
build = None
|
build = None
|
||||||
|
|||||||
Reference in New Issue
Block a user