Hi Jakub,

Jakub Wilk wrote:
> which-pkg-broke uses dpkg-architecture (from dpkg-dev), but
> debian-goodies doesn't depend on/recommend/suggest dpkg-dev.

Thanks for spotting this!

> Instead of "dpkg-architecture -L", I'd suggest using "dpkg
> --print-architecture" followed by "dpkg
> --print-foreign-architectures".

Hrm. I played around with these first and they didn't seem sufficient
enough.

OTOH I can have apt downloading package lists for more than one
architecture while dpkg still doesn't accept installing packages from
foreign architectures, so no package could be broken by just
downloaded package lists.

So I guess your suggestion indeed should be sufficient enough (and
also way more performant as currently all available architectures are
checked).

> Note that the latter will fail with dpkg is not new enough, in which
> case you can assume that there are no foreign architectures.

Good idea. :-)

Thanks!

                Regards, Axel
-- 
 ,''`.  |  Axel Beckert <[email protected]>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-    |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to