Re: binary NMUs and version numbers
Op vr, 26-11-2004 te 06:05 +0000, schreef Scott James Remnant:
> On Thu, 2004-11-25 at 15:52 -0800, Steve Langasek wrote:
> > On Thu, Nov 25, 2004 at 05:24:58PM +0000, Scott James Remnant wrote:
> > > 2) Everything after the operator, including the operator itself be
> > > stripped during version comparisons.
> >
> > > e.g. 1.2-1^1 == 1.2-1
> >
> > Wouldn't this make automatic upgrades to binary NMUs cumbersome? You'd need
> > a separate version comparison routine for deciding whether to upgrade the
> > package, than for deciding whether package relationships are satisfied.
> >
> Yeah, you'd have to vary exactly how it compared depending on the
> circumstances of the comparison. It was an idea, I didn't say it was a
> *good* idea :o)
>
> Maybe we should look at why this is needed? binary-all packages
> depending on a binary-any package from the same source with
> Depends: (= ${Source-Version})
>
> Is there any way we can eliminate the need to do *that*?
The answer is, I think, that
foo_1.2-1^1 == bar_1.2-1
if bar is Architecture: all; but
foo_1.2-1^1 >> bar_1.2-1
if bar is Architecture: any
--
EARTH
smog | bricks
AIR -- mud -- FIRE
soda water | tequila
WATER
-- with thanks to fortune
Reply to: