fix #8131 - chinese translations
[Pman.Core] / JsCompile.php
index 71d6ba7..089db58 100644 (file)
@@ -230,17 +230,8 @@ class Pman_Core_JsCompile  extends Pman
         
         // if packer is running, then dont compile - just output onebyone...
         
-        require_once 'System.php';
-        $pg = System::which('pgrep');
-        $cmd = "$pg roobuilder";
-        $out = trim(`$cmd`);
-        if (strlen($out) > 0) {
-            return false;
-        }
-        
-        
-        
         
+        require_once 'System.php';
         $packer = System::which('roojspacker');
         
         
@@ -261,6 +252,23 @@ class Pman_Core_JsCompile  extends Pman
             return true;
         }
         
+        
+        
+        $pg = System::which('pgrep');
+        if ($pg == '') {
+            echo '<!--  install pgrep -->';
+            return false;
+        }
+        
+        $cmd = "$pg roojspacker";
+        $res = `$cmd`;
+        $out = empty($res) ? '' : trim($res);
+        if (strlen($out) > 0) {
+            echo '<!--  onther process is compiling compile. -->';
+            return false;
+        }
+         
+        
         if (file_exists($output)) {
             unlink($output);
         }