DataObjects/Images.php
[Pman.Core] / UpdateDatabase.php
index c4abffc..3b3c98c 100644 (file)
@@ -150,7 +150,7 @@ class Pman_Core_UpdateDatabase extends Pman
         $ff = HTML_FlexyFramework::get();
         
         if(!isset($ff->Pman) || !isset($ff->Pman['local_base_url'])){
-            die("Please setup local_base_url");
+            die("Please setup Pman[local_base_url]\n");
         }
         
         $this->local_base_url = $ff->Pman['local_base_url'];
@@ -912,7 +912,7 @@ class Pman_Core_UpdateDatabase extends Pman
         if ($done_check) {
             return;
         }
-        print_r($this->opts);
+        
         
         if (!empty($this->opts['skip-mysql-checks'])) {
             return;
@@ -1080,25 +1080,26 @@ class Pman_Core_UpdateDatabase extends Pman
     }
     
     
-    function checkSystem()
+    function checkSystem($req = false, $pref = false)
     {
         // most of these are from File_Convert...
         
         // these are required - and have simple dependancies.
         require_once 'System.php';
-        $req = array( 
+        $req = $req !== false ? $req : array( 
             'convert',
             'grep',
             'pdfinfo',
             'pdftoppm',
             'rsvg-convert',  //librsvg2-bin
             'strings',
+            'oathtool'
         );
          
          
          
         // these are prefered - but may have complicated depenacies
-        $pref= array(
+        $pref = $pref !== false ? $pref :  array(
             'abiword',
             'faad',
             'ffmpeg',