James A. Treacy said: > The lintian repository on master is currently supplying the > usr/doc/{copyright,changelog.Debian.gz} files for the Packages > pages. It is just not reliable enough for us(*) so I'm looking > into extracting the files using a script. > > I'm considering serving the /usr/doc files dynamically. > This meas ripping the .deb apart (trivial) and extracting > the /usr/doc (and /usr/share/doc) portions of data.tar.gz. > Instead of writing them to disc, I was hoping to store > the information directly in perl. Anyone have a suggestion > on how to do this? You get the data.tar.gz file, then run something in perl like: $copyright = `tar xfOz data.tar.gz /usr/doc/$package/copyright`; $changelog = `tar xfOz data.tar.gz /usr/doc/$package/changelog.Debian.gz`;
etc The O means send the file to stdout. -- Craig Small VK2XLZ, PGP: AD 8D D8 63 6E BF C3 C7 47 41 B1 A2 1F 46 EC 90 Eye-Net Consulting http://www.eye-net.com.au/ <[EMAIL PROTECTED]> MIEEE <[EMAIL PROTECTED]> Debian developer <[EMAIL PROTECTED]>