Hello community,

here is the log from the commit of package PackageKit for openSUSE:12.2 checked 
in at 2012-08-22 11:59:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.2/PackageKit (Old)
 and      /work/SRC/openSUSE:12.2/.PackageKit.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "PackageKit", Maintainer is "gnome-maintain...@suse.de"

Changes:
--------
--- /work/SRC/openSUSE:12.2/PackageKit/PackageKit.changes       2012-08-04 
09:25:52.000000000 +0200
+++ /work/SRC/openSUSE:12.2/.PackageKit.new/PackageKit.changes  2012-08-22 
11:59:54.000000000 +0200
@@ -1,0 +2,6 @@
+Wed Aug 22 02:57:11 UTC 2012 - g...@suse.com
+
+- Add PackageKit-bnc775651-ignore-accept-eula.patch to fix crash
+  after accepting EULA (bnc#775651)
+
+-------------------------------------------------------------------

New:
----
  PackageKit-bnc775651-ignore-accept-eula.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ PackageKit.spec ++++++
--- /var/tmp/diff_new_pack.rkV6l7/_old  2012-08-22 11:59:54.000000000 +0200
+++ /var/tmp/diff_new_pack.rkV6l7/_new  2012-08-22 11:59:54.000000000 +0200
@@ -70,6 +70,8 @@
 #
 # PATCH-FIX-UPSTREAM PackageKit-zypp-packagesize.patch bnc#764677 
dims...@opensuse.org -- libzypp changed API and now returns Bytes instead of 
KBytes.
 Patch9:         PackageKit-zypp-packagesize.patch
+# PATCH-FIX-UPSTREAM PackageKit-bnc775651-ignore-accept-eula.patch bnc#775651 
g...@suse.com -- ignore "accept-eula" transactions to avoid crash
+Patch10:        PackageKit-bnc775651-ignore-accept-eula.patch
 BuildRequires:  NetworkManager-devel
 BuildRequires:  automake
 BuildRequires:  docbook-utils
@@ -314,6 +316,7 @@
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
 
 %build
 # Needed due to patch 3


++++++ PackageKit-bnc775651-ignore-accept-eula.patch ++++++
>From 9f1800ad48bff17fbebcc85760c327d78ecc9ee4 Mon Sep 17 00:00:00 2001
From: Gary Ching-Pang Lin <chingp...@gmail.com>
Date: Wed, 15 Aug 2012 16:33:19 +0800
Subject: [PATCH] Ignore "accept-eula" in pk-transaction-run

The "accept-eula" transaction could be proceeded by pk-transaction-run
accidentally. This commit ignores that kind of transaction to avoid
the potential crash.

https://bugs.freedesktop.org/show_bug.cgi?id=53532
---
 src/pk-transaction.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/pk-transaction.c b/src/pk-transaction.c
index dd009e8..347d72e 100644
--- a/src/pk-transaction.c
+++ b/src/pk-transaction.c
@@ -2246,6 +2246,10 @@ pk_transaction_run (PkTransaction *transaction)
        g_return_val_if_fail (PK_IS_TRANSACTION (transaction), FALSE);
        g_return_val_if_fail (priv->tid != NULL, FALSE);
 
+       /* Ignore "accept-eula" */
+       if (priv->role == PK_ROLE_ENUM_ACCEPT_EULA)
+               return TRUE;
+
        /* prepare for use; the transaction list ensures this is safe */
        pk_backend_reset (priv->backend);
 
-- 
1.7.7

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to