Comment 3 for bug 1576960

Revision history for this message
Jarno Suni (jarnos) wrote :

The architecture of e.g. debconf is not some specific architecture, but "all".

So when you want to use the output of apt-mark as an argument for dpkg(-query), you need to tune the name by a shell function like this, right? :

dpkg-pkgname() {
 nativearch=$([ "$(uname -i)" = "x86_64" ] && echo amd64 || echo i386)
 [ -f /var/lib/dpkg/info/"$1".list ] && echo $1 || echo $1:amd64
}