[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#849294: python-apt: aptsources.sourceslist ignores sources.list.d/*.sources files



Control: severity -1 wishlist

On Sat, Dec 24, 2016 at 08:21:58PM +0100, Paul Gevers wrote:
> Package: python-apt
> Version: 1.1.0~beta5
> Severity: important
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> I noticed that aptsources.sourceslist doesn't take the content of souces.list.d
> sources files into account.

That's true. aptsources does not support the deb822 file format and there
are no plans to add that for the foreseeable future. Details:

(1) In fact, there is no way to add support for the format. The format is too
    expressive to be able to be express the data in the current API, requiring
    an API break.

    => Adding support for it means breaking existing applications even more
    then they are now. (or well, we'd have to introduce an aptsources2 module
    or a function to switch to a new API, but that is all fairly awkward).

(2) The code is unmaintained. In fact, most of it was not written by anyone
    on the APT team but by Michiel Sikkes and Sebastian Heinlein both of which
    are not involved anymore.

    The whole parsing needs to be moved up a level into apt-pkg really, and then
    we could have code in there.

If you want to use the aptsources module or a software based on it,
I can only advise you not to use the deb822 format.

Given the complexity of the issue at hand and no chance for a solution in
the foreseeable future, I'm downgrading this to wishlist, according to its
description: "[for any feature request, and also] for any bugs that are very
difficult to fix due to major design considerations."

-- 
Debian Developer - deb.li/jak | jak-linux.org - free software dev
                  |  Ubuntu Core Developer |
When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to ('inline').  Thank you.


Reply to: