]> git.saurik.com Git - apt.git/commit
properly parse comments in apt_preferences and deb822-style sources
authorDavid Kalnischkies <david@kalnischkies.de>
Sat, 2 Jan 2016 12:27:02 +0000 (13:27 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Sat, 2 Jan 2016 15:20:01 +0000 (16:20 +0100)
commitf6459e646f6fa45c34d1f13f37173ea4b92ffd5f
tree1bcb678317ceb6cb6fcaab41621003b6daaf5828
parente21ba62847687b5dc655b28ef7dd67d6eb7336e2
properly parse comments in apt_preferences and deb822-style sources

apt_preferences and deb822-style sources used the specialized class
pkgUserTagSection to deal with comments before/after a given stanza, but
it couldn't deal with comments in the stanza at all.

codesearch suggests that nobody else does and a vastely superior way of
working with potentially commented files is implemented now, so we can
officially discourage the use of the old incomplete hack class.
apt-pkg/policy.cc
apt-pkg/sourcelist.cc
apt-pkg/tagfile.h
test/integration/test-apt-sources-deb822
test/integration/test-policy-pinning