Comment 5 for bug 1576960

Revision history for this message
David Kalnischkies (donkult) wrote :

I presume that works (I would be using nativearch="$(dpkg --print-architecture)" through – and poking directly into info/ is discouraged. Checking exitcode of commands like 'dpkg-query -s "$1"' might be better), but note that with a "foo:all" you aren't talking about a package as packages can't have this special architecture. It is a specific version of a package "foo:native" which was built such that it works independently of the underlying native architecture – so the display of fully arch-qualified package names would still be "wrong" as apt-mark talks about packages, not about versions.

This distinction comes into play e.g. if the source package changes from any to all (or vice versa) as this resembles a 'normal' upgrade (which carries over data like the autobit), while there is no upgrade path in the crossgrading foo:i386 to foo:amd64 case.