projects / phoronix-test-suite.git / commitdiff
Build Results
 
Summary

Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Mon 8/30/10 20:43

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Mon 8/30/10 20:43
Michael Larabel  
 
Mon 8/30/10 20:37
Michael Larabel  
pts-core: Last minute... 
Sat 8/28/10 12:53
Michael Larabel  
pts-core: Detect if a... 
Sat 8/28/10 10:34
Michael Larabel  
pts-core: Fix test result... 
Fri 8/27/10 8:51
Michael Larabel  
pts-core: When doing a... 
Wed 8/25/10 18:46
Michael Larabel  
 
 
> --git a/pts-core/functions/pts-functions-install.php b/pts-core/functions/pts-functions-install.php
index a3b4954
..2fc20cb 100644
--- a/pts-core/functions/pts-functions-install.php
+++ b/pts-core/functions/pts-functions-install.php
@@ -127,17 +127,22 @@ function pts_file_missing_check($file_arr)

     return 
$file_missing;
 }
-function 
pts_install_package_on_distribution($distribution)
+function 
pts_install_package_on_distribution($benchmark)
 {
-    
$distribution strtolower($distribution);
-
+    
$benchmark strtolower($benchmark);
     
$install_objects = array();
-    
pts_recurse_install_benchmark($distribution$install_objects);
-
+    
pts_recurse_install_benchmark($benchmark$install_objects);
+    
pts_install_package_on_distribution_process($install_objects);
+}
+function 
pts_install_package_on_distribution_process($install_objects)
+{
     if(!empty(
$install_objects))
     {
         
$install_objects implode(" "$install_objects);
-        echo 
pts_exec("cd " MISC_LOCATION "distro-scripts/ && sh install-" strtolower(os_vendor()) . "-packages.sh $install_objects");
+        
$distribution strtolower(os_vendor());
+
+        if(
is_file(MISC_LOCATION "distro-scripts/ && sh install-" $distribution "-packages.sh") || is_link(MISC_LOCATION "distro-scripts/ && sh install-" $distribution "-packages.sh"))
+            echo 
pts_exec("cd " MISC_LOCATION "distro-scripts/ && sh install-" $distribution "-packages.sh $install_objects");
     }
 }
 function 
pts_install_external_dependencies_list($Benchmark, &$INSTALL_OBJ)
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2010 by Phoronix Media