[packages/PackageKit] - updated to 0.8.17 - updated hawkey-rpm5 patch

qboosh qboosh at pld-linux.org
Thu Mar 27 21:39:15 CET 2014


commit 66e866065d6b0ae09d04c7675a3263b1bcf090b8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Mar 27 21:42:49 2014 +0100

    - updated to 0.8.17
    - updated hawkey-rpm5 patch

 PackageKit-hawkey-rpm5.patch | 34 +++++++++++++++++-----------------
 PackageKit.spec              | 13 +++++++------
 2 files changed, 24 insertions(+), 23 deletions(-)
---
diff --git a/PackageKit.spec b/PackageKit.spec
index 3f2cc20..e0a00d2 100644
--- a/PackageKit.spec
+++ b/PackageKit.spec
@@ -17,12 +17,12 @@
 Summary:	System daemon that is a D-Bus abstraction layer for package management
 Summary(pl.UTF-8):	Demon systemowy będący warstwą abstrakcji D-Bus do zarządzania pakietami
 Name:		PackageKit
-Version:	0.8.15
+Version:	0.8.17
 Release:	1
 License:	GPL v2+
 Group:		Applications/System
-Source0:	http://www.packagekit.org/releases/%{name}-%{version}.tar.xz
-# Source0-md5:	147e35b64e3e3b9ca8b2baefb37531f6
+Source0:	http://www.freedesktop.org/software/PackageKit/releases/%{name}-%{version}.tar.xz
+# Source0-md5:	a2b1a602fee21430b735e52aaf33bd1a
 Patch0:		%{name}-hawkey-rpm5.patch
 Patch3:		smart-at-fix.patch
 Patch4:		%{name}-gstreamer.patch
@@ -46,10 +46,10 @@ BuildRequires:	gstreamer-plugins-base-devel >= 1.0.0
 BuildRequires:	gtk+2-devel >= 2:2.14.0
 BuildRequires:	gtk+3-devel >= 3.0.0
 %{?with_doc:BuildRequires:	gtk-doc >= 1.11}
-%{?with_hawkey:BuildRequires:	hawkey-devel >= 0.4.5}
+%{?with_hawkey:BuildRequires:	hawkey-devel >= 0.4.6}
 BuildRequires:	intltool >= 0.35.0
 BuildRequires:	libarchive-devel
-%{?with_hawkey:BuildRequires:	librepo-devel}
+%{?with_hawkey:BuildRequires:	librepo-devel >= 0.1.5}
 BuildRequires:	libtool
 BuildRequires:	libxslt-progs
 BuildRequires:	pango-devel
@@ -147,7 +147,8 @@ Summary:	PackageKit Hawkey backend
 Summary(pl.UTF-8):	Backend PackageKit oparty na Hawkeyu
 Group:		Libraries
 Requires:	%{name} = %{version}-%{release}
-Requires:	hawkey >= 0.4.5
+Requires:	hawkey >= 0.4.6
+Requires:	librepo >= 0.1.5
 Provides:	%{name}-backend = %{version}-%{release}
 Obsoletes:	PackageKit-backend-zif < 0.8.14
 
diff --git a/PackageKit-hawkey-rpm5.patch b/PackageKit-hawkey-rpm5.patch
index 874522b..71b3f3f 100644
--- a/PackageKit-hawkey-rpm5.patch
+++ b/PackageKit-hawkey-rpm5.patch
@@ -270,8 +270,8 @@
  
  #include "hif-utils.h"
  #include "hif-state.h"
---- PackageKit-0.8.15/backends/hawkey/pk-backend-hawkey.c.orig	2013-12-17 15:20:05.000000000 +0100
-+++ PackageKit-0.8.15/backends/hawkey/pk-backend-hawkey.c	2014-01-19 19:40:01.683378522 +0100
+--- PackageKit-0.8.17/backends/hawkey/pk-backend-hawkey.c.orig	2014-03-21 12:37:15.000000000 +0100
++++ PackageKit-0.8.17/backends/hawkey/pk-backend-hawkey.c	2014-03-27 20:41:39.122471856 +0100
 @@ -39,12 +39,14 @@
  #include <hawkey/version.h>
  #include <hawkey/util.h>
@@ -289,7 +289,7 @@
  
  #include "hif-db.h"
  #include "hif-goal.h"
-@@ -77,7 +79,6 @@ typedef struct {
+@@ -79,7 +81,6 @@ typedef struct {
  	HifDb		*db;
  	HifState	*state;
  	rpmts		 ts;
@@ -297,20 +297,20 @@
  	GPtrArray	*packages_to_download;
  	PkBitfield	 transaction_flags;
  	HyGoal		 goal;
-@@ -286,29 +287,32 @@ pk_backend_initialize (PkBackend *backen
- 			       "info");
+@@ -289,29 +290,32 @@ pk_backend_initialize (PkBackend *backen
+ 			  G_CALLBACK (pk_backend_yum_repos_changed_cb), backend);
  
  	/* get info from RPM */
 -	rpmGetOsInfo (&value, NULL);
 +	value = rpmExpand ("%{_target_os}", NULL);
  	g_key_file_set_string (priv->config,
  			       HIF_CONFIG_GROUP_NAME,
- 			       "Hawkey::OsInfo", value);
+ 			       "OsInfo", value);
 -	rpmGetArchInfo (&value, NULL);
 +	value = rpmExpand ("%{_target_cpu}", NULL);
  	g_key_file_set_string (priv->config,
  			       HIF_CONFIG_GROUP_NAME,
- 			       "Hawkey::ArchInfo", value);
+ 			       "ArchInfo", value);
 -	rpmGetArchInfo (&value, NULL);
  	priv->native_arches = g_new0 (gchar *, 3);
  	priv->native_arches[0] = g_strdup (value);
@@ -342,7 +342,7 @@
  		value = "armhfp";
  	}
  	g_key_file_set_string (priv->config,
-@@ -476,7 +480,6 @@ pk_backend_start_job (PkBackend *backend
+@@ -458,7 +462,6 @@ pk_backend_start_job (PkBackend *backend
  
  	/* setup RPM */
  	job_data->ts = rpmtsCreate ();
@@ -350,7 +350,7 @@
  
  	/* HifState */
  	job_data->packages_to_download =
-@@ -546,8 +549,7 @@ pk_backend_stop_job (PkBackend *backend,
+@@ -530,8 +533,7 @@ pk_backend_stop_job (PkBackend *backend,
  	g_ptr_array_unref (job_data->packages_to_download);
  	if (job_data->goal != NULL)
  		hy_goal_free (job_data->goal);
@@ -360,7 +360,7 @@
  	g_object_unref (job_data->db);
  	g_free (job_data);
  	pk_backend_job_set_user_data (job, NULL);
-@@ -1911,7 +1913,7 @@ out:
+@@ -1989,7 +1991,7 @@ out:
   * pk_backend_transaction_check_untrusted:
   */
  static gboolean
@@ -369,7 +369,7 @@
  					GPtrArray *sources,
  					HyGoal goal,
  					GError **error)
-@@ -1957,7 +1959,7 @@ pk_backend_transaction_check_untrusted (
+@@ -2035,7 +2037,7 @@ pk_backend_transaction_check_untrusted (
  		}
  
  		/* check file */
@@ -378,7 +378,7 @@
  							filename,
  							error);
  		if (!ret)
-@@ -2045,15 +2047,6 @@ hif_commit_rpmcb_type_to_string (const r
+@@ -2123,15 +2125,6 @@ hif_commit_rpmcb_type_to_string (const r
  	case RPMCALLBACK_SCRIPT_ERROR:
  		type = "script-error";
  		break;
@@ -394,7 +394,7 @@
  	}
  	return type;
  }
-@@ -2329,7 +2322,6 @@ hif_commit_ts_progress_cb (const void *a
+@@ -2407,7 +2400,6 @@ hif_commit_ts_progress_cb (const void *a
  		/* don't do anything */
  		break;
  
@@ -402,7 +402,7 @@
  	case RPMCALLBACK_UNINST_STOP:
  
  		/* phase complete */
-@@ -2344,8 +2336,6 @@ hif_commit_ts_progress_cb (const void *a
+@@ -2422,8 +2414,6 @@ hif_commit_ts_progress_cb (const void *a
  	case RPMCALLBACK_UNPACK_ERROR:
  	case RPMCALLBACK_CPIO_ERROR:
  	case RPMCALLBACK_SCRIPT_ERROR:
@@ -411,7 +411,7 @@
  	case RPMCALLBACK_UNKNOWN:
  	case RPMCALLBACK_REPACKAGE_PROGRESS:
  	case RPMCALLBACK_REPACKAGE_START:
-@@ -2738,14 +2728,14 @@ pk_backend_transaction_commit (PkBackend
+@@ -2816,14 +2806,14 @@ pk_backend_transaction_commit (PkBackend
  		goto out;
  
  	/* import all GPG keys */
@@ -425,10 +425,10 @@
  				 PK_TRANSACTION_FLAG_ENUM_ONLY_TRUSTED)) {
 -		ret = pk_backend_transaction_check_untrusted (job_data->keyring,
 +		ret = pk_backend_transaction_check_untrusted (
- 							      job_data->enabled_sources,
+ 							      job_data->sources,
  							      job_data->goal,
  							      error);
-@@ -2765,15 +2755,7 @@ pk_backend_transaction_commit (PkBackend
+@@ -2843,15 +2833,7 @@ pk_backend_transaction_commit (PkBackend
  	/* setup the transaction */
  	commit = g_new0 (HifTransactionCommit, 1);
  	commit->timer = g_timer_new ();
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/PackageKit.git/commitdiff/66e866065d6b0ae09d04c7675a3263b1bcf090b8



More information about the pld-cvs-commit mailing list