rpms/PackageKit/devel pk-catalog-parameter-fix.patch, NONE, 1.1 PackageKit.spec, 1.52, 1.53
Richard Hughes
rhughes at fedoraproject.org
Wed Sep 10 16:32:28 UTC 2008
- Previous message (by thread): rpms/open-cobol/devel import.log, NONE, 1.1 open-cobol.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/goffice/F-9 .cvsignore, 1.7, 1.8 goffice.spec, 1.17, 1.18 sources, 1.7, 1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: rhughes
Update of /cvs/pkgs/rpms/PackageKit/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25934
Modified Files:
PackageKit.spec
Added Files:
pk-catalog-parameter-fix.patch
Log Message:
* Wed Sep 10 2008 Richard Hughes <rhughes at redhat.com> - 0.3.2-3
- Fix an error where we don't check for existing packages in the catalog
code properly. Also fixes the self tests.
pk-catalog-parameter-fix.patch:
--- NEW FILE pk-catalog-parameter-fix.patch ---
commit 918dd9d10ef18725776c6a55fe9cf03ec18db047
Author: Richard Hughes <richard at hughsie.com>
Date: Wed Sep 10 17:24:24 2008 +0100
bugfix: use a bitfield when searching for files in the catalog else we might return the wrong results
diff --git a/libpackagekit/pk-catalog.c b/libpackagekit/pk-catalog.c
index 3072ad1..fcd14a2 100644
--- a/libpackagekit/pk-catalog.c
+++ b/libpackagekit/pk-catalog.c
@@ -174,12 +174,18 @@ pk_catalog_process_type (PkCatalog *catalog)
/* do the actions */
if (mode == PK_CATALOG_PROGRESS_PACKAGES) {
packages = pk_package_ids_from_id (package);
- ret = pk_client_resolve (catalog->priv->client, PK_FILTER_ENUM_NOT_INSTALLED, packages, &error);
+ ret = pk_client_resolve (catalog->priv->client,
+ pk_bitfield_value (PK_FILTER_ENUM_NOT_INSTALLED),
+ packages, &error);
g_strfreev (packages);
} else if (mode == PK_CATALOG_PROGRESS_FILES) {
- ret = pk_client_search_file (catalog->priv->client, PK_FILTER_ENUM_NOT_INSTALLED, package, &error);
+ ret = pk_client_search_file (catalog->priv->client,
+ pk_bitfield_value (PK_FILTER_ENUM_NOT_INSTALLED),
+ package, &error);
} else if (mode == PK_CATALOG_PROGRESS_PROVIDES) {
- ret = pk_client_what_provides (catalog->priv->client, PK_FILTER_ENUM_NOT_INSTALLED, 0, package, &error);
+ ret = pk_client_what_provides (catalog->priv->client,
+ pk_bitfield_value (PK_FILTER_ENUM_NOT_INSTALLED),
+ PK_PROVIDES_ENUM_ANY, package, &error);
}
if (!ret) {
egg_warning ("method failed: %s", error->message);
Index: PackageKit.spec
===================================================================
RCS file: /cvs/pkgs/rpms/PackageKit/devel/PackageKit.spec,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- PackageKit.spec 10 Sep 2008 14:32:50 -0000 1.52
+++ PackageKit.spec 10 Sep 2008 16:31:58 -0000 1.53
@@ -8,7 +8,7 @@
Summary: System daemon that is a DBUS abstraction layer for package management
Name: PackageKit
Version: 0.3.2
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: http://packagekit.freedesktop.org
@@ -18,6 +18,9 @@
# Upstream: 0bc4ba936db39ccf0466987d964a016363bceeee
Patch0: pk-dont-show-brackets-null.patch
+# Upstream: 918dd9d10ef18725776c6a55fe9cf03ec18db047
+Patch1: pk-catalog-parameter-fix.patch
+
Requires: dbus >= %{dbus_version}
Requires: dbus-glib >= %{dbus_glib_version}
Requires: PackageKit-libs = %{version}-%{release}
@@ -142,6 +145,7 @@
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%configure --enable-yum --enable-smart --with-default-backend=yum --disable-local
@@ -270,6 +274,10 @@
%{_includedir}/*
%changelog
+* Wed Sep 10 2008 Richard Hughes <rhughes at redhat.com> - 0.3.2-3
+- Fix an error where we don't check for existing packages in the catalog
+ code properly. Also fixes the self tests.
+
* Wed Sep 10 2008 Richard Hughes <rhughes at redhat.com> - 0.3.2-2
- Fix a library error so we don't print (null) in the UI.
- Previous message (by thread): rpms/open-cobol/devel import.log, NONE, 1.1 open-cobol.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/goffice/F-9 .cvsignore, 1.7, 1.8 goffice.spec, 1.17, 1.18 sources, 1.7, 1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list