[65243] trunk/base/src/port1.0/portpatch.tcl

raimue at macports.org raimue at macports.org
Wed Mar 24 08:16:31 PDT 2010


Revision: 65243
          http://trac.macports.org/changeset/65243
Author:   raimue at macports.org
Date:     2010-03-24 08:16:28 -0700 (Wed, 24 Mar 2010)
Log Message:
-----------
port1.0/portpatch.tcl: Avoid crash when patchfiles ends up empty, fixes #24178

Modified Paths:
--------------
    trunk/base/src/port1.0/portpatch.tcl

Modified: trunk/base/src/port1.0/portpatch.tcl
===================================================================
--- trunk/base/src/port1.0/portpatch.tcl	2010-03-24 14:54:31 UTC (rev 65242)
+++ trunk/base/src/port1.0/portpatch.tcl	2010-03-24 15:16:28 UTC (rev 65243)
@@ -71,7 +71,7 @@
     global UI_PREFIX
 
     # First make sure that patchfiles exists and isn't stubbed out.
-    if {![exists patchfiles]} {
+    if {![exists patchfiles] || [option patchfiles] == ""} {
         return 0
     }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100324/e995b4ee/attachment.html>


More information about the macports-changes mailing list