Revision
54739
Author
enl@macports.org
Date
2009-08-01 06:23:37 -0700 (Sat, 01 Aug 2009)

Log Message

Added prefix to the logdir

Modified Paths

Diff

Modified: branches/gsoc09-logging/base/src/port1.0/portutil.tcl (54738 => 54739)


--- branches/gsoc09-logging/base/src/port1.0/portutil.tcl	2009-08-01 13:15:09 UTC (rev 54738)
+++ branches/gsoc09-logging/base/src/port1.0/portutil.tcl	2009-08-01 13:23:37 UTC (rev 54739)
@@ -1207,7 +1207,7 @@
 set ports_dry_last_skipped ""
 
 proc target_run {ditem} {
-    global target_state_fd workpath ports_trace PortInfo ports_dryrun ports_dry_last_skipped current_stage worksrcpath
+    global target_state_fd workpath ports_trace PortInfo ports_dryrun ports_dry_last_skipped current_stage worksrcpath prefix
    set portname [option name]
     set result 0
     set skipped 0
@@ -1369,7 +1369,7 @@
         }
         if {[exists copy_log_files]} {
             set log_files [option copy_log_files]
-            set log_dir "/var/macports/logs/$portname"
+            set log_dir "$prefix/var/macports/logs/$portname"
             file mkdir $log_dir
  
             foreach log_file $log_files {