c26f0f2
commit 16bea44b16fd8b1ac36cc5939caf1017eece12eb
c26f0f2
Author: Richard Hughes <richard@hughsie.com>
c26f0f2
Date:   Tue Sep 23 14:43:31 2008 +0100
c26f0f2
c26f0f2
    yum: fix the name of the enum when no mirrors are found
c26f0f2
c26f0f2
diff --git a/backends/yum/yumBackend.py b/backends/yum/yumBackend.py
c26f0f2
index b445e0d..8a29917 100755
c26f0f2
--- a/backends/yum/yumBackend.py
c26f0f2
+++ b/backends/yum/yumBackend.py
c26f0f2
@@ -915,7 +915,7 @@ class PackageKitYumBackend(PackageKitBaseBackend,PackagekitPackage):
c26f0f2
         except yum.Errors.RepoError,e:
c26f0f2
                 message = self._format_msgs(e.value)
c26f0f2
                 if message.find ("No more mirrors to try") != -1:
c26f0f2
-                    self.error(ERROR_FILE_NO_MORE_MIRRORS_TO_TRY,message)
c26f0f2
+                    self.error(ERROR_NO_MORE_MIRRORS_TO_TRY,message)
c26f0f2
                 else:
c26f0f2
                     self.error(ERROR_REPO_CONFIGURATION_ERROR,message)
c26f0f2
         except yum.Errors.YumBaseError,e: