- Fix the error dialog when no mirrors are found
This commit is contained in:
parent
1c79fda99e
commit
c26f0f21ad
@ -8,7 +8,7 @@
|
||||
Summary: System daemon that is a DBUS abstraction layer for package management
|
||||
Name: PackageKit
|
||||
Version: 0.3.4
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
License: GPLv2+
|
||||
Group: System Environment/Libraries
|
||||
URL: http://packagekit.freedesktop.org
|
||||
@ -21,6 +21,9 @@ Patch0: pk-dont-send-finished-from-dispatcher.patch
|
||||
# upstream: 95a2dcf78ba0e2ae6262bfae897a16b0e26408c8
|
||||
Patch1: pk-dont-schedule-the-whole-queue.patch
|
||||
|
||||
# upstream: 16bea44b16fd8b1ac36cc5939caf1017eece12eb
|
||||
Patch2: pk-fix-yum-error-name.patch
|
||||
|
||||
Requires: dbus >= %{dbus_version}
|
||||
Requires: dbus-glib >= %{dbus_glib_version}
|
||||
Requires: PackageKit-libs = %{version}-%{release}
|
||||
@ -147,6 +150,7 @@ using PackageKit.
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
%configure --enable-yum --enable-smart --with-default-backend=yum --disable-local
|
||||
@ -277,6 +281,9 @@ update-mime-database %{_datadir}/mime &> /dev/null || :
|
||||
%{_includedir}/*
|
||||
|
||||
%changelog
|
||||
* Tue Sep 23 2008 Richard Hughes <rhughes@redhat.com> - 0.3.4-4
|
||||
- Fix the error dialog when no mirrors are found
|
||||
|
||||
* Tue Sep 23 2008 Richard Hughes <rhughes@redhat.com> - 0.3.4-3
|
||||
- Don't try to run all the committed transactions at once with a deep queue.
|
||||
- This fixes the bug where the dispatcher would sometimes fail to run the
|
||||
|
||||
19
pk-fix-yum-error-name.patch
Normal file
19
pk-fix-yum-error-name.patch
Normal file
@ -0,0 +1,19 @@
|
||||
commit 16bea44b16fd8b1ac36cc5939caf1017eece12eb
|
||||
Author: Richard Hughes <richard@hughsie.com>
|
||||
Date: Tue Sep 23 14:43:31 2008 +0100
|
||||
|
||||
yum: fix the name of the enum when no mirrors are found
|
||||
|
||||
diff --git a/backends/yum/yumBackend.py b/backends/yum/yumBackend.py
|
||||
index b445e0d..8a29917 100755
|
||||
--- a/backends/yum/yumBackend.py
|
||||
+++ b/backends/yum/yumBackend.py
|
||||
@@ -915,7 +915,7 @@ class PackageKitYumBackend(PackageKitBaseBackend,PackagekitPackage):
|
||||
except yum.Errors.RepoError,e:
|
||||
message = self._format_msgs(e.value)
|
||||
if message.find ("No more mirrors to try") != -1:
|
||||
- self.error(ERROR_FILE_NO_MORE_MIRRORS_TO_TRY,message)
|
||||
+ self.error(ERROR_NO_MORE_MIRRORS_TO_TRY,message)
|
||||
else:
|
||||
self.error(ERROR_REPO_CONFIGURATION_ERROR,message)
|
||||
except yum.Errors.YumBaseError,e:
|
||||
Loading…
Reference in New Issue
Block a user