Kaydet (Commit) e446c604 authored tarafından Ali Rıza KESKİN's avatar Ali Rıza KESKİN

fix source repo la

üst f0a8744b
......@@ -170,7 +170,9 @@ class RepoDB(lazydb.LazyDB):
repo = self.get_repo(repo_name)
index_path = repo.indexuri.get_uri()
if index_path == None :#or not os.path.exists(index_path):
# ctx.ui.warning(_("{} repository needs to be updated").format(repo_name))
return xmlext.newDocument("INARY")
# FIXME Local index files should also be cached.
if File.is_compressed(index_path) or repo.indexuri.is_remote_file():
index = os.path.basename(index_path)
......@@ -180,10 +182,6 @@ class RepoDB(lazydb.LazyDB):
if File.is_compressed(index_path):
index_path = os.path.splitext(index_path)[0]
if not os.path.exists(index_path):
# ctx.ui.warning(_("{} repository needs to be updated").format(repo_name))
return xmlext.newDocument("INARY")
try:
return xmlext.parse(index_path)
except Exception as e:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment