From c865af238e723fced2d9740c93d51f826762cee1 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 7 Jan 2020 15:20:56 +0100 Subject: fix failing scriptlets test with rpm < 4.13.0 it got broken when wee added support for rpm 4.13.0 in commit cdcb6c6359e8ee2a590c3c40aa3b4d57ec3b1e80 --- t/superuser--failing-scriptlets.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 't') 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'); -- cgit v1.2.1