On Fri, Feb 09, 2018 at 12:42:12PM +0100, Ansgar Burchardt wrote: > FWIW we added a `Changelogs` field to Debian's Release files so tools > like apt or aptitude no longer have to hardcode the source URL for > changelogs for every distribution. This was requested by the apt
libapt has the pkgAcqChangelog class which can be used for this, e.g. new pkgAcqChangelog(&Fetcher, Ver, "."); to download the changelog file to the current directory – without giving a path it will us a temporary file. See apt-private/private-download.cc and especially DoChangelog for the implementation of "apt(-get) changelog" as a complete example. Perhaps this is another command aptitude could delegate entirely by calling apt – but I don't know aptitude specifics. Best regards David Kalnischkies
signature.asc
Description: PGP signature