[Yum-devel] [PATCH] add --enablerepo to suggestion for handling package not matching what is expected to be downloaded. deals with folks installing debuginfo pkgs but not have debug repos enabled when they run clean metadata

Seth Vidal skvidal at fedoraproject.org
Thu May 6 14:59:59 UTC 2010


---
 yum/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/yum/__init__.py b/yum/__init__.py
index 64663cc..d2a3a76 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -1584,7 +1584,7 @@ class YumBase(depsolve.Depsolve):
                     os.unlink(fo)
 
             if raiseError:
-                msg = _('Package does not match intended download. Suggestion: run yum clean metadata')
+                msg = _('Package does not match intended download. Suggestion: run yum --enablerepo=%s clean metadata') %  po.repo.id 
                 raise URLGrabError(-1, msg)
             else:
                 return False
-- 
1.7.0.1



More information about the Yum-devel mailing list