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

index df9f596..c5e052a 100644 (file)
@@ -32,7 +32,7 @@ abstract class MTrack_SCM_WorkingCopy {
     function __destruct()
     {
         if (strlen($this->dir) > 1) {
-            require_once 'System.php';
+            $this->rmdir($this->dir);
             
             //System::rm('-r', $this->dir);
         }
@@ -50,7 +50,7 @@ abstract class MTrack_SCM_WorkingCopy {
     function generateTempDir()
     {
         
-        $tn =  '/var/lib/php5/mtrackworkingdirlEwD96a';
+        /*$tn =  '/var/lib/php5/mtrackworkingdirlEwD96a';
         if (file_exists($tn)) {
             $this->rmdir($tn);
         }
@@ -59,7 +59,7 @@ abstract class MTrack_SCM_WorkingCopy {
             die("OOPS");
         }
         return $tn;
-
+        */
         $tn = tempnam(ini_get('session.save_path'),'mtrackworkingdir');
         unlink($tn);
         return $tn;