[26394] trunk/base/src/port1.0/portclean.tcl

source_changes at macosforge.org source_changes at macosforge.org
Wed Jun 20 18:37:14 PDT 2007


Revision: 26394
          http://trac.macosforge.org/projects/macports/changeset/26394
Author:   jmpp at macports.org
Date:     2007-06-20 18:37:13 -0700 (Wed, 20 Jun 2007)

Log Message:
-----------

Remove $portbuiltpath instead of $workpath upon 'port clean --work', I'm tired of empty dirs represeting the full path to the Portfile being left behind in the build dir!

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

Modified: trunk/base/src/port1.0/portclean.tcl
===================================================================
--- trunk/base/src/port1.0/portclean.tcl	2007-06-20 23:27:33 UTC (rev 26393)
+++ trunk/base/src/port1.0/portclean.tcl	2007-06-21 01:37:13 UTC (rev 26394)
@@ -149,11 +149,11 @@
 }
 
 proc clean_work {args} {
-	global workpath worksymlink
+    global portbuildpath worksymlink
 
-	if {[file isdirectory $workpath]} {
-		ui_debug "Removing directory: ${workpath}"
-		if {[catch {delete $workpath} result]} {
+	if {[file isdirectory $portbuildpath]} {
+		ui_debug "Removing directory: ${portbuildpath}"
+		if {[catch {delete $portbuildpath} result]} {
 			ui_debug "$::errorInfo"
 			ui_error "$result"
 		}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070620/39e0bac2/attachment.html


More information about the macports-changes mailing list