Bug 258081 - Error: Cannot retrieve repository metadata (repomd.xml) for repository: %s. Please verify its path and try again
Summary: Error: Cannot retrieve repository metadata (repomd.xml) for repository: %s. P...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: All
OS: All
medium
low
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 279151 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-08-27 20:57 UTC by Orion Poplawski
Modified: 2014-01-21 22:59 UTC (History)
4 users (show)

Fixed In Version: 3.2.5-1.fc7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-09-18 03:20:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2007-08-27 20:57:01 UTC
Description of problem:

I get this message from a yum cron job on a laptop presumably when it doesn't
have internet access:

Error: Cannot retrieve repository metadata (repomd.xml) for repository: %s.
Please verify its path and try again

Two issues:

- The message is not printed properly.  I believe this will fix:

--- /usr/lib/python2.5/site-packages/yum/yumRepo.py.orig        2007-08-27
13:38:48.000000000 -0600
+++ /usr/lib/python2.5/site-packages/yum/yumRepo.py     2007-08-27
13:40:01.000000000 -0600
@@ -720,8 +720,8 @@
         try:
             self._loadRepoXML(text=self)
         except Errors.RepoError, e:
-            msg = "Cannot retrieve repository metadata (repomd.xml) for
repository: %s. " + \
-                  "Please verify its path and try again" % self
+            msg = "Cannot retrieve repository metadata (repomd.xml) for
repository: %s. " \
+                  % self + "Please verify its path and try again"
             raise Errors.RepoError, (msg)
         return self._repoXML


- Second issue is that this is being run with -e 0 and I don't think it should
be printing this error.

Version-Release number of selected component (if applicable):
yum-3.2.3-2.fc7

(This is an updated yum from development build on f7)

Comment 1 Seth Vidal 2007-08-31 04:44:22 UTC
-e0 outputs critical failures - of which this is one. so it's printing out is
correct but the output is, indeed, wrong. Thank you.

I've applied a slight different patch than yours - but thank you for pointing it
out.



Comment 2 Seth Vidal 2007-09-05 19:31:06 UTC
*** Bug 279151 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2007-09-12 16:41:19 UTC
yum-3.2.5-1.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Fedora Update System 2007-09-18 03:20:50 UTC
yum-3.2.5-1.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.