[53496] trunk/base/doc/portfile.7
blb at macports.org
blb at macports.org
Mon Jul 6 18:58:31 PDT 2009
Revision: 53496
http://trac.macports.org/changeset/53496
Author: blb at macports.org
Date: 2009-07-06 18:58:30 -0700 (Mon, 06 Jul 2009)
Log Message:
-----------
portfile.7 - document rpm-vercomp's return information
Modified Paths:
--------------
trunk/base/doc/portfile.7
Modified: trunk/base/doc/portfile.7
===================================================================
--- trunk/base/doc/portfile.7 2009-07-07 01:53:06 UTC (rev 53495)
+++ trunk/base/doc/portfile.7 2009-07-07 01:58:30 UTC (rev 53496)
@@ -1944,7 +1944,12 @@
.It Ic md5 Ar
Compute the MD5 hashes of the file(s).
.It Ic rpm-vercomp Ar versionA Ar versionB
-Compare two RPM-format versions for equality.
+Compare two RPM-format versions for equality. The return value is like
+strcmp(), returning -1, 0, or 1 when versionA is earlier, equal to, or
+later than versionB, respectively. Note that some comparisions featuring
+floating-point notation may compare incorrection, eg, 2.101 is considered
+later than 2.2 (101 is larger than 2) which may be incorrect per some
+projects versioning methods.
.It Xo
.Ic lpush
.Ar varName
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090706/28cd08f4/attachment.html>
More information about the macports-changes
mailing list