site  contact  subhomenews

Fix description field in pkg db

January 15, 2025 — BarryK

Forum member Caramel discovered the problem, when using PKGget:

https://forum.puppylinux.com/viewtopic.php?t=13626

The script /usr/local/petget/0setup calls /usr/local/petget/debdb2pupdb-nim to convert the Debian package database to "Puppy format". The problem that Caramel discovered is that the description field of this package contained " characters:

libgstreamer-plugins-bad1.0-0_1.22.0-4|libgstreamer-plugins-bad1.0-0|1.22.0-4||BuildingBlock\
|2387K|pool/DEBIAN/main/g/gst-plugins-bad1.0|libgstreamer-plugins-bad1.0-0_1.22.0-4+deb12u5_amd64.deb\
|+libc6&ge2.29,+libdrm2&ge2.3.1,+libglib2.0-0&ge2.68,+libgstreamer-gl1.0-0&ge1.22.0,+libgstreamer-plugins-base1.0-0&ge1.22.0,+libgstreamer1.0-0&ge1.22.0,+libnice10&ge0.1.21,+libva-drm2&ge1.8,+libva2&ge2.10.0,+libvulkan1&ge1.2.131.2,+libwayland-client0&ge1.20.0,+libxcb1,+libxkbcommon-x11-0&ge0.5.0,+libxkbcommon0&ge0.5.0\
|GStreamer libraries from the "bad" set|devuan|daedalus|8ad1b5148b4fc676523250df74fb4cae||

The previous debdb2pupdb was written in Bacon and it had better filtering of the description field.

I have edited debdb2pupdb.nim in the 'pup-tools' package, to filter out all characters not strictly required for the description. See commit:

https://github.com/bkauler/woofq/commit/91c16fb70865188c91b84ce82a38a1d7aa081041   

Tags: easy