Comment 7 for bug 646901

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 646901] Re: multistrap needs to be updated for new apt and cross-tools in main

On Fri, Oct 01, 2010 at 02:05:17AM -0000, Wookey wrote:
> The binutils-multiarch re-install line is there because it is the fairly
> crufty way we deal with diversions. Nothing guarantees correct ordering
> (pre-depends ignored) so diverts may happen before the thing they direct
> are present. Simplest fix is to re-install any package doing diversions
> at the end. In a base cross-chroot that's just binutils-multiarch.
> Declarative diverts would let us deal with this without explicit config.

Well, then you're working around a bug that does not exist. It's perfectly
allowed to divert a file before that file exists, and dpkg will do the right
thing on unpack. So I'm going to drop this part of the patch for upload.

> The attached patch is pretty-much the same as yours except that it also
> ensures --force-yes is correctly used for the re-install option if
> noauth is set.

Right, good point. noauth should never be used, but if someone's going to
use it, it should work...

Uploaded to the maverick queue, thanks!

--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
<email address hidden> <email address hidden>