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.
--- /dev/null
+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++)
%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
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
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%{__rm} m4/libtool.m4 m4/lt*.m4