summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Dieter <jdieter@gmail.com>2007-08-05 13:23:34 +0300
committerJonathan Dieter <jdieter@gmail.com>2007-08-05 13:23:34 +0300
commit8de0f7ec066888c5f8c0cf8a79635bccea8b59c1 (patch)
tree8bdf181fecd183324edec6998eb182f0d7fb3276
parent0ccaa0532e427276c3f71fc0270f1fb8712065ed (diff)
downloadpresto-8de0f7ec066888c5f8c0cf8a79635bccea8b59c1.zip
presto-8de0f7ec066888c5f8c0cf8a79635bccea8b59c1.tar.gz
presto-8de0f7ec066888c5f8c0cf8a79635bccea8b59c1.tar.xz
Fix for situation where repository may be removed and then added again
Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
-rw-r--r--yum-presto/ChangeLog3
-rw-r--r--yum-presto/presto.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/yum-presto/ChangeLog b/yum-presto/ChangeLog
index 0486cde..f3c4a4a 100644
--- a/yum-presto/ChangeLog
+++ b/yum-presto/ChangeLog
@@ -1,6 +1,7 @@
-* Mon Jul 30 2007 Jonathan Dieter <jdieter@gmail.com> - 0.4.1
+* Sun Aug 5 2007 Jonathan Dieter <jdieter@gmail.com> - 0.4.1
- Applied small patch by Luke Macken to fix problems when not run directly
from yum.
+ - Fix for situation where repository may be removed and then added again
* Wed Jul 11 2007 Jonathan Dieter <jdieter@gmail.com> - 0.4.0
- Complete rewrite by Jeremy Katz.
diff --git a/yum-presto/presto.py b/yum-presto/presto.py
index 641e775..7828906 100644
--- a/yum-presto/presto.py
+++ b/yum-presto/presto.py
@@ -369,7 +369,7 @@ def postreposetup_hook(conduit):
for active_repo in conduit.getRepos().listEnabled():
try:
deltamd = active_repo.retrieveMD("prestodelta")
- except yum.Errors.RepoMDError:
+ except:
conduit.info(2, "No Presto metadata available for %s" %(active_repo,))
continue
pinfo[active_repo.id] = PrestoParser(deltamd).getDeltas()