summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/pkg_mgr_install.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php
index 2f127c5..2796bf3 100755
--- a/usr/local/www/pkg_mgr_install.php
+++ b/usr/local/www/pkg_mgr_install.php
@@ -154,10 +154,16 @@ switch($_GET['mode']) {
update_output_window($static_output);
break;
default:
- install_package($_GET['id']);
- update_status("Installation of {$_GET['id']} completed.");
- $static_output .= "\n\nInstallation completed.";
- update_output_window($static_output);
+ $status = install_package($_GET['id']);
+ if($status == -1) {
+ update_status("Installation of {$_GET['id']} FAILED!");
+ $static_output .= "\n\nInstallation halted.";
+ } else {
+ update_status("Installation of {$_GET['id']} completed.");
+ $static_output .= "\n\nInstallation completed.";
+ }
+ update_output_window($static_output);
+
}
// Delete all temporary package tarballs and staging areas.
@@ -171,4 +177,4 @@ conf_mount_ro();
if($fd_log)
fclose($fd_log);
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud