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

Bug#623574: File lookup with wrong arch for arch=all on amd64



Package: apt
Version: 0.8.12
Severity: normal

Hi,

on powerpc I see these file lookups:

% strace -e trace=file apt-get install --no-download -qq -y --print-uris aft 2>&1 |grep archives/
stat("/var/cache/apt/archives/aft_5.097-1_all.deb", 0x7fff42469f20) = -1 ENOENT (No such file or directory)
stat("/var/cache/apt/archives/aft_2%3a5.097-1_all.deb", 0x7fff42469f20) = -1 ENOENT (No such file or directory)
stat("/var/cache/apt/archives/partial/aft_2%3a5.097-1_all.deb", 0x7fff42469f20) = -1 ENOENT (No such file or directory)

but on amd64 I see these file lookups:

% strace -e trace=file apt-get install --no-download -qq -y --print-uris aft 2>&1 |grep archives/
stat("/var/cache/apt/archives/aft_5.097-1_all.deb", 0x7fff228a3060) = -1 ENOENT (No such file or directory)
stat("/var/cache/apt/archives/aft_2%3a5.097-1_amd64.deb", 0x7fff228a3060) = -1 ENOENT (No such file or directory)
stat("/var/cache/apt/archives/partial/aft_2%3a5.097-1_amd64.deb", 0x7fff228a3060) = -1 ENOENT (No such file or directory)

The second file lookup is done with the architecture amd64 while the
package aft is an arch‐all package. I've tracked it down to the commit
2089.1.16 (i.e. 2089.1.15 is fine, while 2089.1.16 is bad).

But it happens only on amd64, not on powerpc. Hence, when downloading
packages on a powerpc machine and copying them in the archives directory
of the amd64 machine, apt-get doesn't find the packages and tries to
download them anew.

The commit message of 2089.1.16 says it's intended behaviour, but then it
should be equal across all architectures.

Bye, Jörg.
-- 
Niveau sieht nur von unten aus wie Arroganz.

Attachment: signature.asc
Description: Digital signature http://en.wikipedia.org/wiki/OpenPGP


Reply to: