[oe-commits] Sebastian Krzyszkowiak : packagekit: fix opkg backend to install multiple packages
git version control
git at git.openembedded.org
Mon Aug 31 12:51:08 UTC 2009
Module: openembedded.git
Branch: shr/import
Commit: f64c8b9ed3d91b3df432cc20c97db8caf7e17d53
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f64c8b9ed3d91b3df432cc20c97db8caf7e17d53
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date: Mon Aug 31 14:50:25 2009 +0200
packagekit: fix opkg backend to install multiple packages
---
...ng-and-removing-multiple-packages-at-once.patch | 47 ++++++++++++++++++++
recipes/packagekit/packagekit_0.5.1.bb | 6 ++-
2 files changed, 52 insertions(+), 1 deletions(-)
diff --git a/recipes/packagekit/files/opkg-fix-installing-and-removing-multiple-packages-at-once.patch b/recipes/packagekit/files/opkg-fix-installing-and-removing-multiple-packages-at-once.patch
new file mode 100644
index 0000000..4c4387e
--- /dev/null
+++ b/recipes/packagekit/files/opkg-fix-installing-and-removing-multiple-packages-at-once.patch
@@ -0,0 +1,47 @@
+From 2ac8917a2703392c3eecde260ecacc9cc4af68ed Mon Sep 17 00:00:00 2001
+From: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
+Date: Sun, 30 Aug 2009 20:19:56 +0200
+Subject: [PATCH] opkg: fix installing and removing multiple packages at once
+
+---
+ backends/opkg/pk-backend-opkg.c | 9 +++++----
+ 1 files changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/backends/opkg/pk-backend-opkg.c b/backends/opkg/pk-backend-opkg.c
+index 34a2439..ec4ada2 100644
+--- a/backends/opkg/pk-backend-opkg.c
++++ b/backends/opkg/pk-backend-opkg.c
+@@ -2,6 +2,7 @@
+ * vi: set noexpandtab sts=8 sw=8:
+ *
+ * Copyright (C) 2007 OpenMoko, Inc
++ * Copyright (C) 2009 Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
+ *
+ * Licensed under the GNU General Public License Version 2
+ *
+@@ -423,9 +424,9 @@ backend_install_packages_thread (PkBackend *backend)
+
+ for (i = 0; package_ids[i]; i++)
+ {
+- pk_backend_package (backend, PK_INFO_ENUM_INSTALLING, package_ids[0], NULL);
++ pk_backend_package (backend, PK_INFO_ENUM_INSTALLING, package_ids[i], NULL);
+
+- pi = pk_package_id_new_from_string (package_ids[0]);
++ pi = pk_package_id_new_from_string (package_ids[i]);
+
+ err = opkg_install_package (opkg, pi->name, pk_opkg_progress_cb, backend);
+ if (err)
+@@ -475,8 +476,8 @@ backend_remove_packages_thread (PkBackend *backend)
+
+ for (i = 0; package_ids[i]; i++)
+ {
+- pi = pk_package_id_new_from_string (package_ids[0]);
+- pk_backend_package (backend, PK_INFO_ENUM_REMOVING, package_ids[0], NULL);
++ pi = pk_package_id_new_from_string (package_ids[i]);
++ pk_backend_package (backend, PK_INFO_ENUM_REMOVING, package_ids[i], NULL);
+
+ err = opkg_remove_package (opkg, pi->name, pk_opkg_progress_cb, backend);
+
+--
+1.6.3.3
+
diff --git a/recipes/packagekit/packagekit_0.5.1.bb b/recipes/packagekit/packagekit_0.5.1.bb
index 112f52a..1861bf8 100644
--- a/recipes/packagekit/packagekit_0.5.1.bb
+++ b/recipes/packagekit/packagekit_0.5.1.bb
@@ -10,9 +10,11 @@ inherit gnome autotools_stage
SRC_URI = "http://www.packagekit.org/releases/PackageKit-${PV}.tar.gz \
file://fix-segfaults-when-consolekit-is-missing.patch;patch=1 \
file://fix-segfault-when-hald-is-not-running.patch;patch=1 \
+ file://opkg-fix-installing-and-removing-multiple-packages-at-once.patch;patch=1 \
+# file://opkg-fix-infinite-loop-in-get_updates.patch;patch=1 \
"
-PR = "r2"
+PR = "r3.3"
PE = "2"
S = "${WORKDIR}/PackageKit-${PV}"
@@ -21,6 +23,8 @@ EXTRA_OECONF = "--with-security-framework=dummy \
--with-default-backend=opkg \
--enable-opkg \
--enable-dummy \
+ --disable-networkmanager \
+ --disable-connman \
--disable-tests \
--disable-qt \
--disable-gstreamer-plugin \
More information about the Openembedded-commits
mailing list