Summary
Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Wed 2/3/10 13:04
Recent Commits
>
--git a/pts-core/functions/pts-functions-install.php b/pts-core/functions/pts-functions-install.php
index 5d11d1d..023b6f7 100644
--- a/pts-core/functions/pts-functions-install.php
+++ b/pts-core/functions/pts-functions-install.php
@@ -122,6 +122,19 @@ function pts_file_missing_check($file_arr)
return $file_missing;
}
+function pts_install_package_on_distribution($distribution)
+{
+ $distribution = strtolower($distribution);
+
+ $install_objects = array();
+ pts_recurse_install_benchmark($distribution, $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");
+ }
+}
function pts_install_external_dependencies($Benchmark, &$INSTALL_OBJ)
{
if(pts_benchmark_type($Benchmark) != "BENCHMARK")
diff --git a/pts-core/pts-run-cmd.php b/pts-core/pts-run-cmd.php
index ca0a854..9a859c2 100644
--- a/pts-core/pts-run-cmd.php
+++ b/pts-core/pts-run-cmd.php
@@ -69,16 +69,7 @@ switch($COMMAND)
require("pts-core/functions/pts-functions-install.php");
- $ARG_1 = strtolower($ARG_1);
-
- $install_objects = array();
- pts_recurse_install_benchmark($ARG_1, $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");
- }
+ pts_install_package_on_distribution($ARG_1);
break;
case "REMOTE_COMPARISON":
echo "Now Use merge-results for remote comparison with integrated Global ID support.";
<
Copyright © 2010 by Phoronix Media