From d46ce2ac20fd401001c3aa70150c19c100b8fc84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Sun, 26 Sep 2010 11:42:07 +0000 Subject: [PATCH] installdb: Real fix when Package tag is missing --- pisi/db/installdb.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pisi/db/installdb.py b/pisi/db/installdb.py index e0ed174e..67b98389 100644 --- a/pisi/db/installdb.py +++ b/pisi/db/installdb.py @@ -86,6 +86,9 @@ class InstallDB(lazydb.LazyDB): meta_doc = piksemel.parse(metadata_xml) pkg = meta_doc.getTag("Package") except: + pkg = None + + if pkg is None: # If package info is broken or not available, skip it. ctx.ui.warning(_("Installation info for package '%s' is broken. " "Reinstall it to fix this problem.") % package)