MTrack/SCM/WorkingCopy.php
authorAlan Knowles <alan@akbkhome.com>
Tue, 6 Sep 2011 08:52:35 +0000 (16:52 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 6 Sep 2011 08:52:35 +0000 (16:52 +0800)
MTrack/SCM/WorkingCopy.php

index c8c21d2..ca3bba1 100644 (file)
@@ -33,15 +33,19 @@ abstract class MTrack_SCM_WorkingCopy {
     {
         if (strlen($this->dir) > 1) {
             require_once 'System.php';
-            echo "rmdir {$this->dir}";
-            
-            System::rm('-r', $this->dir);
+            //System::rm('-r', $this->dir);
         }
     }
     function generateTempDir()
     {
         
-        
+        $tn =  '/var/lib/php5/mtrackworkingdirlEwD96';
+        if (file_exists($tn)) {
+            require_once 'System.php';
+            System::rm('-r', $this->dir);
+        }
+        return $tn;
+
         $tn = tempnam(ini_get('session.save_path'),'mtrackworkingdir');
         unlink($tn);
         return $tn;