[88941] trunk/dports/_resources/port1.0/group/github-1.0.tcl

ryandesign at macports.org ryandesign at macports.org
Sat Jan 14 23:19:20 PST 2012


Revision: 88941
          http://trac.macports.org/changeset/88941
Author:   ryandesign at macports.org
Date:     2012-01-14 23:19:17 -0800 (Sat, 14 Jan 2012)
Log Message:
-----------
github-1.0.tcl: only attempt to rename extracted directory if there is at least one distfile

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/github-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/github-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/github-1.0.tcl	2012-01-15 06:53:28 UTC (rev 88940)
+++ trunk/dports/_resources/port1.0/group/github-1.0.tcl	2012-01-15 07:19:17 UTC (rev 88941)
@@ -57,7 +57,7 @@
     distname                ${github.project}-${github.version}
     
     post-extract {
-        if {"standard" == ${fetch.type} && ${master_sites} == ${github.master_sites}} {
+        if {"standard" == ${fetch.type} && ${master_sites} == ${github.master_sites} && [llength ${distfiles}] > 0} {
             move [glob ${workpath}/*] ${worksrcpath}
         }
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120114/12d1f52a/attachment.html>


More information about the macports-changes mailing list