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

Bug#920482: apt update fails to update from repository missing optional Contents files





On Sat, 26 Jan 2019, 6:57 pm Julian Andres Klode <jak@debian.org wrote:
On Sat, Jan 26, 2019 at 12:39:16PM +1100, Andrew Worsley wrote:
> Package: apt
> Version: 1.8.0~alpha3.1
> Severity: important
>
>
>   I maintain a mirror via a local python script which doesn't bother to cache the optional
> Contents files as described in
> https://wiki.debian.org/DebianRepository/Format#A.22Contents.22_indices :
>       
....


I think that's correct. While the Contents files are optional; if the Release file advertises
them, they better be there.

Partial mirroring is simply not supported - if you advertise it, ship it. I mean, the same
applies to architectures or sections: If they're not mirrored, but enabled on a client,
they will fail as well
...
Ok thanks that's clarified things a lot. 
I guess if I don't want to mirror the contents file I would have to edit the InRelease file which would break the signatures I guess.
 The option that marks the contents as missing also lets me handle this nicely.
Ideally this could be added to the repository definition wiki and or perhaps apt's error message could say file defined in InRelease file is not present.
 Perhaps change but report into a wish list or something?
Andrew

Reply to: