summaryrefslogtreecommitdiffstats
path: root/t/superuser--failing-scriptlets.t
diff options
context:
space:
mode:
Diffstat (limited to 't/superuser--failing-scriptlets.t')
-rw-r--r--t/superuser--failing-scriptlets.t7
1 files changed, 6 insertions, 1 deletions
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');