summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spiderr@bitweaver.org>2022-05-03 23:37:21 -0400
committerspiderr <spiderr@bitweaver.org>2022-05-03 23:37:21 -0400
commit35d6f822b1af462ff62685a0507047bf412dc414 (patch)
tree9c6f9ebc0f819a6fe93baee52794e55216fca068
parentbac1714f79537904d87220ca91597a8100716f76 (diff)
downloadinstall-35d6f822b1af462ff62685a0507047bf412dc414.tar.gz
install-35d6f822b1af462ff62685a0507047bf412dc414.tar.bz2
install-35d6f822b1af462ff62685a0507047bf412dc414.zip
fix error display with required package missing
-rw-r--r--install_packages.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/install_packages.php b/install_packages.php
index 807cae3..f1ebaff 100644
--- a/install_packages.php
+++ b/install_packages.php
@@ -150,7 +150,8 @@ if( !empty( $_REQUEST['cancel'] ) ) {
$dependentsUninstalled = array_intersect( $dependentPackages, $uninstalledPackages );
if( !empty( $dependentPackages ) && (count( $dependentsUninstalled ) + count( $dependentsInstalled )) != count( $dependentPackages ) ) {
// total dependents is not the same as what is/will be installed
- $errors[] = 'Required package is missing: '.$package.' requires '.$gBitInstaller->mPackages['info']['dependencies'];
+ $failedcommands[] = 'Dependency Check Failure';
+ $errors[] = 'Required package is missing: '.$package.' requires '.implode( ', ', $dependentPackages );
} elseif( empty( $gBitInstaller->mPackages[$package]['requirements'] ) && count( $dependentsInstalled ) == count( $dependentPackages ) ) {
unset( $build );
// work out what we're going to do with this package