https://sourceware.org/bugzilla/show_bug.cgi?id=33693
--- Comment #1 from Sam James <sam at gentoo dot org> ---
Just this is enough to get rolling (bikeshedding on option etc later):
```
--- a/debuginfod/debuginfod.cxx
+++ b/debuginfod/debuginfod.cxx
@@ -435,6 +435,7 @@ static const struct argp_option options[] =
{ "scan-file-dir", 'F', NULL, 0, "Enable ELF/DWARF file scanning.", 0 },
{ "scan-rpm-dir", 'R', NULL, 0, "Enable RPM scanning.", 0 },
{ "scan-deb-dir", 'U', NULL, 0, "Enable DEB scanning.", 0 },
+ { "scan-gpkg-dir", 'S', NULL, 0, "Enable GPKG scanning.", 0},
{ "scan-archive", 'Z', "EXT=CMD", 0, "Enable arbitrary archive scanning.",
0 },
// "source-oci-imageregistry" ...
@@ -635,6 +636,9 @@ parse_opt (int key, char *arg,
scan_archives[".ipk"]="(bsdtar -O -x -f - data.tar\\*)<";
// .udeb too?
break;
+ case 'S':
+ scan_archives[".gpkg.tar"]="(bsdtar -O -x -f - \\*/image.tar\\*)<";
+ break;
case 'Z':
{
char* extension = strchr(arg, '=');
```
but inside of the image directory, paths *start with* image/:
```
/tmp/h/hwdata-0.400-1 $ tar xvf image.tar.xz
image/
image/lib/
image/lib/modprobe.d/
image/lib/modprobe.d/dist-blacklist.conf
image/usr/
image/usr/share/
image/usr/share/doc/
image/usr/share/doc/hwdata-0.400/
image/usr/share/doc/hwdata-0.400/README
image/usr/share/hwdata/
image/usr/share/hwdata/iab.txt
image/usr/share/hwdata/oui.txt
image/usr/share/hwdata/pci.ids
image/usr/share/hwdata/pnp.ids
image/usr/share/hwdata/usb.ids
image/usr/share/pkgconfig/
image/usr/share/pkgconfig/hwdata.pc
```
I've tried a few combinations of bsdtar's -s for transforms as well as
--strip-components but neither seem to do the job, but maybe I'm putting them
in the wrong place.
Any ideas? I'm happy to implement this.
--
You are receiving this mail because:
You are on the CC list for the bug.