Control: user debian-p...@lists.debian.org Control: usertag -1 bcn2015 -=| Niko Tyni, 22.04.2015 22:22:49 +0300 |=- > Package: dh-make-perl, apt-file > Severity: wishlist > > It looks like both apt-file and Debian::AptContents::get_contents_files() > in dh-make-perl parse /etc/apt/sources.list type files and try to > determine a path to Contents files from that. It would be nice if they > could share this code, perhaps by moving it into a separate module > shipped with apt-file that dh-make-perl could use.
FTR, I tried moving the parse_sources_list() routine into a separate module (Apt::Parse::Sources), but it seems to use too much from apt-file's machinery - $Conf, debug(), error(), warningx(). Not that it isn't possible to re-implement that or hack something, but it started to feel uncomfortable messing with apt-file internals. Sorry, no good news :/ > (This was prompted by #783110 FWIW.) > > As for actually parsing the sources.list files, libapt-pkg-perl does > some of that too but unfortunately there doesn't seem to be any interface > for getting details about the source repositories... -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org