UpdateDatabase.php
[Pman.Core] / UpdateDatabase.php
index 080a984..51c0cab 100644 (file)
@@ -396,7 +396,20 @@ class Pman_Core_UpdateDatabase extends Pman
                 
                 echo basename($dir).'/'. basename($fn) .    '::' .  $cmd. ($this->cli ? "\n" : "<BR>\n");
                 
-                passthru($cmd);
+                
+                $fp = popen($cmd, "r"); 
+                while(!feof($fp)) 
+                { 
+                    // send the current file part to the browser 
+                    $line = fread($fp, 1024);
+                    echo $line;
+                    echo "--";
+                    
+                    
+                    // flush the content to the browser 
+                    flush(); 
+                } 
+                
             
                 
         }
@@ -963,16 +976,16 @@ class Pman_Core_UpdateDatabase extends Pman
     
     function checkSystem()
     {
+        // most of these are from File_Convert...
+        
         // these are required - and have simple dependancies.
         require_once 'System.php';
         $req = array( 
             'convert',
             'grep',
-
             'pdfinfo',
-            'pdftocairo',
             'pdftoppm',
-            'rsvg-convert',
+            'rsvg-convert',  //librsvg2-bin
             'strings',
         );
          
@@ -984,6 +997,8 @@ class Pman_Core_UpdateDatabase extends Pman
             'faad',
             'ffmpeg',
             'html2text', // not availabe in debian squeeze
+            'pdftocairo',  //poppler-utils - not available in debian squeeze.
+
             'lame',
             'ssconvert',
             'unoconv',