On Sat, Nov 30, 2024 at 12:31:11AM +0100, Francesco Poli wrote:
> On Thu, 28 Nov 2024 02:47:41 +0200 Adrian Bunk wrote:
> 
> [...]
> > apt knows what release a package is from,
> > that's also required for pinning.
> > 
> > I don't know apt internals, I would guess there is some way to get apt 
> > to tell you the release it downloaded the package from?
> 
> I think it's not that simple.
> 
> First off, a package may have the same version in two (or more)
> releases: the most common case is when a version is both in unstable
> and testing, but other cases may include the same version in both
> stable and testing (and maybe even in unstable)...
> Which release should be considered in these cases, if apt-listbugs had
> to figure out the release by asking to APT ?
>...

Get:1 https://deb.debian.org/debian bookworm/main amd64 hello amd64 2.10-3 
[53.1 kB]

In this case apt is clearly telling me that this package is being 
downloaded from bookworm, even though apt would download exactly the
same file from exactly the same location in the pool for trixie or sid.

"download" is not even the relevant part here, "apt policy hello" can 
tell you from which distribution apt would install hello.

cu
Adrian

Reply via email to