[issue257] Error message is related to the wrong file in metadata-rpm

Mauricio Teixeira (netmask) at Labix Tracker tracker at labix.org
Fri Nov 24 09:27:17 PST 2006


Mauricio Teixeira (netmask) <mteixeira at webset.net> added the comment:

Sorry. It took me some time to understand the issue, but now I got it fixed on
SVN r827.

Thanks for your patience.

Index: smart/channels/rpm_md.py
===================================================================
--- smart/channels/rpm_md.py    (revision 826)
+++ smart/channels/rpm_md.py    (revision 827)
@@ -133,8 +133,13 @@
                             flitem.getFailedReason()))
             return False
         elif fetcher.getCaching() is NEVER:
+            if item.getStatus() == FAILED:
+                faileditem = item
+            else:
+                faileditem = flitem
             lines = [_("Failed acquiring information for '%s':") % self,
-                       u"%s: %s" % (item.getURL(), item.getFailedReason())]
+                       u"%s: %s" % (faileditem.getURL(),
+                       faileditem.getFailedReason())]
             raise Error, "\n".join(lines)
         else:
             return False

----------
status: need-info -> resolved

_______________________________________
Labix issue tracker <tracker at labix.org>
<http://tracker.labix.org/issue257>
_______________________________________



More information about the Smart mailing list