rdieter pushed to apper (epel7). "don't try !allow_deps, -yum, -hif backends do not support it apparently (#877038, kde#315063)"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 02:54:44 UTC 2015


>From 92a8733718d640a2d0d5a7902381500c756dab65 Mon Sep 17 00:00:00 2001
From: Rex Dieter <rdieter at math.unl.edu>
Date: Sat, 6 Dec 2014 13:24:23 -0600
Subject: don't try !allow_deps, -yum,-hif backends do not support it
 apparently (#877038,kde#315063)


diff --git a/apper-0.8.2-allow_deps.patch b/apper-0.8.2-allow_deps.patch
new file mode 100644
index 0000000..34b90e4
--- /dev/null
+++ b/apper-0.8.2-allow_deps.patch
@@ -0,0 +1,12 @@
+diff -up apper-0.8.2/libapper/PkTransaction.cpp.allow_deps apper-0.8.2/libapper/PkTransaction.cpp
+--- apper-0.8.2/libapper/PkTransaction.cpp.allow_deps	2014-04-19 14:25:19.000000000 -0500
++++ apper-0.8.2/libapper/PkTransaction.cpp	2014-12-06 13:22:34.855124992 -0600
+@@ -166,7 +166,7 @@ void PkTransaction::removePackages(const
+ {
+     if (Daemon::global()->actions() & Transaction::RoleRemovePackages) {
+         d->originalRole = Transaction::RoleRemovePackages;
+-        d->allowDeps = false; // Default to avoid dependencies removal unless simulate says so
++        d->allowDeps = true; // Default to avoid dependencies removal unless simulate says so
+         d->packages = packages;
+         d->flags = Transaction::TransactionFlagOnlyTrusted | Transaction::TransactionFlagSimulate;
+ 
diff --git a/apper.spec b/apper.spec
index b8db43a..54be9ec 100644
--- a/apper.spec
+++ b/apper.spec
@@ -5,7 +5,7 @@
 
 Name:    apper
 Version: 0.8.2
-Release: 2%{?dist}
+Release: 3%{?dist}
 Summary: KDE interface for PackageKit
 
 License: GPLv2+
@@ -26,6 +26,10 @@ Source10: 01-fedora-org.packagekit.updater.js
 # http://bugs.kde.org/show_bug.cgi?id=318864
 # http://bugzilla.redhat.com/1090595
 Patch50: apper-0.8.2-kde318864.patch
+# -hif (and yum?) backends apparently do not support !allow_deps at all, so don't try
+# https://bugzilla.redhat.com/show_bug.cgi?id=877038
+# http://bugs.kde.org/show_bug.cgi?id=315063
+Patch51: apper-0.8.2-allow_deps.patch
 
 ## upstream patches
 # hack around https://bugzilla.redhat.com/948099
@@ -62,6 +66,7 @@ KDE interface for PackageKit.
 %setup -q 
 
 %patch50 -p1 -b .kde318864
+%patch51 -p1 -b .allow_deps
 %patch200 -p1 -b .pk_cache_update
 
 %build
@@ -141,6 +146,9 @@ fi
 
 
 %changelog
+* Sat Dec 06 2014 Rex Dieter <rdieter at fedoraproject.org> 0.8.2-3
+- don't try !allow_deps, -yum,-hif backends do not support it apparently (#877038,kde#315063)
+
 * Wed Nov 05 2014 Rex Dieter <rdieter at fedoraproject.org> 0.8.2-2
 - avoid notification spam (kde#318864,#1090595)
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/apper.git/commit/?h=epel7&id=92a8733718d640a2d0d5a7902381500c756dab65


More information about the scm-commits mailing list