commit 9303febc9476af12c073a7f0e87aa0b1ede789a1
Author: Kacper Kornet <[email protected]>
Date: Sat Mar 22 20:20:48 2014 +0100
remove --noorder option during package removal
Poldek assumption that rpm -e --noorder removes packages starting from
the last one is wrong for rpm 5.4. This causes error for packages with
Requires(preun). At the same time rpm 5.4 is able to sort them correctly
by itself.
poldek-noorder.patch | 14 ++++++++++++++
poldek.spec | 4 +++-
2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/poldek.spec b/poldek.spec
index 8817c09..d676fd0 100644
--- a/poldek.spec
+++ b/poldek.spec
@@ -22,7 +22,7 @@
%endif
%define ver_rpm 5.4.10
-%define rel 7
+%define rel 8
Summary: RPM packages management helper tool
Summary(hu.UTF-8): RPM csomagkezelést segítő eszköz
Summary(pl.UTF-8): Pomocnicze narzędzie do zarządzania pakietami RPM
@@ -51,6 +51,7 @@ Patch1: %{name}-Os-fail-workaround.patch
Patch2: %{name}-config.patch
Patch3: at-char-completion.patch
Patch4: %{name}-ignore-too-long-paths.patch
+Patch5: %{name}-noorder.patch
URL: http://poldek.pld-linux.org/
BuildRequires: %{db_pkg}-devel >= %{ver_db}-%{ver_db_rel}
BuildRequires: autoconf
@@ -220,6 +221,7 @@ Moduły języka Python dla poldka.
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%{__rm} m4/libtool.m4 m4/lt*.m4
diff --git a/poldek-noorder.patch b/poldek-noorder.patch
new file mode 100644
index 0000000..b2187d4
--- /dev/null
+++ b/poldek-noorder.patch
@@ -0,0 +1,14 @@
+diff --git a/pm/rpm/rpminstall.c b/pm/rpm/rpminstall.c
+index c128216..1a3fed8 100644
+--- a/pm/rpm/rpminstall.c
++++ b/pm/rpm/rpminstall.c
+@@ -534,7 +534,9 @@ int pm_rpm_packages_uninstall(struct pkgdb *db, const
tn_array *pkgs,
+ argv[nargs++] = (char*)ts->rootdir;
+ }
+
++#ifndef HAVE_RPM_VERSION_GE_5
+ argv[nargs++] = "--noorder";
++#endif
+
+ if (ts->rpmopts)
+ for (i=0; i<n_array_size(ts->rpmopts); i++)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/poldek.git/commitdiff/9303febc9476af12c073a7f0e87aa0b1ede789a1
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit