diff --git a/pisi/db/repodb.py b/pisi/db/repodb.py index ba5f99bd..f41f8284 100644 --- a/pisi/db/repodb.py +++ b/pisi/db/repodb.py @@ -115,6 +115,10 @@ class RepoDB(lazydb.LazyDB): if index_path.endswith("bz2"): index_path = index_path.split(".bz2")[0] + if not os.path.exists(index_path): + ctx.ui.warning("%s repository needs to be updated" % repo_name) + return piksemel.newDocument("PISI") + try: return piksemel.parse(index_path) except Exception, e: