summaryrefslogtreecommitdiffstats
path: root/RPM4
diff options
context:
space:
mode:
Diffstat (limited to 'RPM4')
-rw-r--r--RPM4/NEWS2
-rw-r--r--RPM4/t/05transaction.t4
2 files changed, 5 insertions, 1 deletions
diff --git a/RPM4/NEWS b/RPM4/NEWS
index 92d9590..ed7c34c 100644
--- a/RPM4/NEWS
+++ b/RPM4/NEWS
@@ -1,5 +1,5 @@
- Adapt for rpm-4.19
-- Fix Te->file segfaulting
+- Fix Te->file segfaulting (at least with rpm-4.18+)
Version 0.45 - 27 April 2022
diff --git a/RPM4/t/05transaction.t b/RPM4/t/05transaction.t
index 1a319b3..ffc4837 100644
--- a/RPM4/t/05transaction.t
+++ b/RPM4/t/05transaction.t
@@ -56,7 +56,11 @@ ok($h, "Reading the header works");
ok($ts->transadd($h, "$Bin/test-rpm-1.0-1mdk.noarch.rpm") == 0, "Adding a package to transaction works");
ok($ts->traverse_transaction(sub {
ok($_[0]->fullname, "Can get name from te");
+SKIP: {
+# segfault on mga[2-7], aka with rpm-4.9 & rpm-4.1[04], status is unknown for 4.15
+skip 'segfault on older rpm', 1 if `rpm --version` =~ /4\.(9|1[0-5])\./;
ok($_[0]->files, "Can get files from te");
+}
ok($_[0]->type, "Can get type from te");
}), "traverse_transaction works");