[147859] trunk/dports/net/nss/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Mon Apr 18 17:34:43 PDT 2016


Revision: 147859
          https://trac.macports.org/changeset/147859
Author:   mcalhoun at macports.org
Date:     2016-04-18 17:34:43 -0700 (Mon, 18 Apr 2016)
Log Message:
-----------
nss: alway have NSS_VPATCH be a number; only affects future versions

Modified Paths:
--------------
    trunk/dports/net/nss/Portfile

Modified: trunk/dports/net/nss/Portfile
===================================================================
--- trunk/dports/net/nss/Portfile	2016-04-18 23:26:09 UTC (rev 147858)
+++ trunk/dports/net/nss/Portfile	2016-04-19 00:34:43 UTC (rev 147859)
@@ -8,6 +8,10 @@
 set NSS_VMAJOR      [lindex [split ${version} .] 0]
 set NSS_VMINOR      [lindex [split ${version} .] 1]
 set NSS_VPATCH      [lindex [split ${version} .] 2]
+if {${NSS_VPATCH} eq ""} {
+    # NSS_VPATCH should always be a number
+    set NSS_VPATCH 0
+}
 categories          net
 maintainers         nomaintainer
 license             {MPL-1.1 GPL-2+ LGPL-2.1+}
@@ -105,7 +109,7 @@
 
 livecheck.type    regex
 livecheck.url     http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/
-if {${NSS_VPATCH} eq ""} {
+if {${NSS_VPATCH} eq 0} {
     livecheck.version "${NSS_VMAJOR}_${NSS_VMINOR}"
 } else {
     livecheck.version "${NSS_VMAJOR}_${NSS_VMINOR}_${NSS_VPATCH}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160418/b275aa13/attachment.html>


More information about the macports-changes mailing list