It was reported that libarchive (bsdtar) at least as far back as rhel7
(3.1.2) can natively process RPM files, so there's no need to mediate
those accesses through rpm2cpio. There's no noteworthy performance or
testing impact.
Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
Signed-off-by: Mark Wielaard <mark@klomp.org>
+2020-02-25 Frank Ch. Eigler <fche@redhat.com>
+
+ * debuginfod.cxx (parse_opt): Treat -R as if -Z.rpm .
+
2020-02-25 Frank Ch. Eigler <fche@redhat.com>
* debuginfod.cxx (fdcache_prefetch): New parameter.
break;
case 'F': scan_files = true; break;
case 'R':
- scan_archives[".rpm"]="rpm2cpio";
+ scan_archives[".rpm"]="cat"; // libarchive groks rpm natively
break;
case 'U':
scan_archives[".deb"]="dpkg-deb --fsys-tarfile";
+2020-02-25 Frank Ch. Eigler <fche@redhat.com>
+
+ * debuginfod.8: Note that -R works just like -Z.rpm .
+
2020-02-25 Frank Ch. Eigler <fche@redhat.com>
* debuginfod.8: Document new --fdcache-prefetch option.
.TP
.B "\-R"
Activate RPM patterns in archive scanning. The default is off.
-Equivalent to \fB\%\-Z\~.rpm=rpm2cpio\fP.
+Equivalent to \fB\%\-Z\~.rpm=cat\fP, since libarchive can natively
+process RPM archives.
.TP
.B "\-U"