On Sun, 23 Jan 2005 11:57:49 -0800, Trevor Harmon <[EMAIL PROTECTED]> wrote:
> On Jan 23, 2005, at 8:17 AM, Koen van der Drift wrote:
> 
> > The graph-pm package which I maintain is currently at version
> > graph-pm-0.20105. A new upstream version has been released,
> > graph-pm-0.55. If I type fink info graph-pm, it will still show the
> > info for the older version (the newer version is in my local tree). I
> > suspect this is because 0.20105 is regarded a higher number than 0.55.
> 
> If so, this is a bug in Fink. Perhaps you should file a bug report on
> it...

Trevor,
do you mean the bug is in the version comparison, or in showing the
info for the older version?

"dpkg --compare-versions 0.20105 gt 0.55" returns true, because
version numbers are generally not compared as though they were true
decimal numbers. AFAIR, the sequence of operations here is roughly
"split version at the dots into a list of numbers, then compare each
list element in turn", so 0 == 0 and 20105 > 55.

It's my understanding that the fink Perl code should agree with dpkg
on version comparisons, but this is based on a very quick reading of
Fink::Services.

Personally, I think there's a bug in the package's version scheme :-)
As AKH suggested, an Epoch would fix this, since the implicit epoch of
0 on the older package would cause the version comparison to bail out
early.

-- 
- Charles Lepple


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to