summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--t/superuser--failing-scriptlets.t7
2 files changed, 7 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index cd6f0fd2..344e1f45 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- cpan_testers:
+ o fix failing scriptlets test with rpm < 4.13.0
o skip tests if we have no supported downloader
Version 8.120 - 21 October 2019
diff --git a/t/superuser--failing-scriptlets.t b/t/superuser--failing-scriptlets.t
index 80c81146..6804eaaa 100644
--- a/t/superuser--failing-scriptlets.t
+++ b/t/superuser--failing-scriptlets.t
@@ -12,7 +12,12 @@ need_root_and_prepare();
test_install_rpm_fail('pre');
test_install_rpm_fail('pretrans');
test_install_rpm('post');
-test_install_rpm_but_uninstall_fail('preun');
+require urpm::select;
+if (urpm::select::_rpm_version() lt 4.13.0) { # && -e '/etc/mageia-release') {
+ test_install_rpm('preun');
+} else {
+ test_install_rpm_but_uninstall_fail('preun');
+}
test_install_rpm('postun');
test_install_rpm('posttrans');