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

Bug#649319: debootstrap: cannot handle perl-modules 5.12.4-6 and 5.14.2-5 both being in sid



clone 649319 -1
reassign -1 bootstrap-base
thanks

On Sat, Nov 19, 2011 at 11:05:53PM +0100, Uwe Kleine-König wrote:
> I think it would be sensible to always pick up the highest version
> available if there is more than one. I'm not sure if this might result
> in similar situations that wouldn't occur when picking the smaller
> version, but at least it would be consistent with apt.

I agree that debootstrap ought to solve this problem.  (In fact, it's in
the pkgdetails API, so we need to solve this in both debootstrap and
bootstrap-base; cloning this bug for that.)

The bit that makes it difficult is that we need to do this work before
we necessarily have dpkg available, so we can't compare version numbers
in any remotely reliable way.  What we can do, however, is notice when
there are multiple stanzas with the same package name, and pick the last
one rather than the first.  dak seems to reliably sort in ascending
version order; Launchpad also does, although from code inspection I
think this is a result of sorting by ascending order of publication IDs,
but it seems to amount to the same thing in practice.  (Even if this
weren't 100% reliable, always picking the last stanza for a given
package name is no worse than always picking the first one.)

I'm working on this now.

-- 
Colin Watson                                       [cjwatson@ubuntu.com]



Reply to: