diff options
author | Robin Norwood <rnorwood@redhat.com> | 2008-04-16 13:07:49 -0400 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2008-04-20 21:58:03 +0100 |
commit | 619875f3fef96e8d776736b64346b426685ef206 (patch) | |
tree | 31f713df0ab2c03719c523f8ad788726619c0be6 | |
parent | 14ea7c67fce961955ac665a3a87122064f81d4bb (diff) |
Fix some error messages.
-rw-r--r-- | backends/yum/helpers/yumBackend.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/backends/yum/helpers/yumBackend.py b/backends/yum/helpers/yumBackend.py index 0e1534ab8..0fe346b3a 100644 --- a/backends/yum/helpers/yumBackend.py +++ b/backends/yum/helpers/yumBackend.py @@ -232,7 +232,7 @@ class PackageKitYumBackend(PackageKitBaseBackend): try: func(*args, **kwargs) except yum.Errors.RepoError, e: - self.error(ERROR_NO_CACHE,"Package cache is invalid and could not be rebuilt .") + self.error(ERROR_NO_CACHE,"Package cache is invalid and could not be rebuilt.") return wrapper @@ -1386,9 +1386,10 @@ class PackageKitYumBackend(PackageKitBaseBackend): to packagekit. Overload this method if you what handle special Tracebacks ''' - if issubclass(tb, (yum.Errors.RepoError, IOError)): + if issubclass(tb, yum.Errors.RepoError): # Unhandled Repo error, can be network problems - self.error(ERROR_REPO_NOT_AVAILABLE, "Problem connecting to repository, this can be caused by network problems or a misconfigured repository") + + self.error(ERROR_REPO_NOT_AVAILABLE, "Problem connecting to software source. This can be caused by network problems or a misconfiguration.") return True else: # Do the default stuff return False |