[116495] trunk/base/src/package1.0

jmr at macports.org jmr at macports.org
Mon Jan 27 01:56:24 PST 2014


Revision: 116495
          https://trac.macports.org/changeset/116495
Author:   jmr at macports.org
Date:     2014-01-27 01:56:24 -0800 (Mon, 27 Jan 2014)
Log Message:
-----------
portrpm, portsrpm: remove redundant calls to expr

Modified Paths:
--------------
    trunk/base/src/package1.0/portrpm.tcl
    trunk/base/src/package1.0/portsrpm.tcl

Modified: trunk/base/src/package1.0/portrpm.tcl
===================================================================
--- trunk/base/src/package1.0/portrpm.tcl	2014-01-27 09:50:18 UTC (rev 116494)
+++ trunk/base/src/package1.0/portrpm.tcl	2014-01-27 09:56:24 UTC (rev 116495)
@@ -227,7 +227,7 @@
 URL: ${homepage}
 BuildRoot: ${destroot}
 AutoReq: no"
-    if {[expr {${epoch} != 0}]} {
+    if {$epoch != 0} {
 	    puts $specfd "Epoch: ${epoch}"
     }
     if {[llength ${dependencies}] != 0} {

Modified: trunk/base/src/package1.0/portsrpm.tcl
===================================================================
--- trunk/base/src/package1.0/portsrpm.tcl	2014-01-27 09:50:18 UTC (rev 116494)
+++ trunk/base/src/package1.0/portsrpm.tcl	2014-01-27 09:56:24 UTC (rev 116495)
@@ -227,7 +227,7 @@
     if {$zip ne ""} {
         puts $specfd "Source1: $zip"
     }
-    if {[expr {${epoch} != 0}]} {
+    if {$epoch != 0} {
 	    puts $specfd "Epoch: ${epoch}"
     }
     set first 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140127/357ce8c2/attachment.html>


More information about the macports-changes mailing list