Revision: 102567 https://trac.macports.org/changeset/102567 Author: sean@macports.org Date: 2013-02-04 14:32:08 -0800 (Mon, 04 Feb 2013) Log Message: ----------- bitbucket-1.0: fix error with moving an empty list of files Modified Paths: -------------- trunk/dports/_resources/port1.0/group/bitbucket-1.0.tcl Modified: trunk/dports/_resources/port1.0/group/bitbucket-1.0.tcl =================================================================== --- trunk/dports/_resources/port1.0/group/bitbucket-1.0.tcl 2013-02-04 22:32:03 UTC (rev 102566) +++ trunk/dports/_resources/port1.0/group/bitbucket-1.0.tcl 2013-02-04 22:32:08 UTC (rev 102567) @@ -78,7 +78,8 @@ post-extract { if {![file exists ${worksrcpath}] && "standard" == ${fetch.type} && \ - ${master_sites} == ${bitbucket.master_sites} && [llength ${distfiles}] > 0} { + ${master_sites} == ${bitbucket.master_sites} && [llength ${distfiles}] > 0 && \ + [llength [glob -nocomplain ${workpath}/*]] > 0} { move [glob ${workpath}/*] ${worksrcpath} } }