diff options
| author | spiderr <spiderr@bitweaver.org> | 2022-05-03 23:37:21 -0400 |
|---|---|---|
| committer | spiderr <spiderr@bitweaver.org> | 2022-05-03 23:37:21 -0400 |
| commit | 35d6f822b1af462ff62685a0507047bf412dc414 (patch) | |
| tree | 9c6f9ebc0f819a6fe93baee52794e55216fca068 | |
| parent | bac1714f79537904d87220ca91597a8100716f76 (diff) | |
| download | install-35d6f822b1af462ff62685a0507047bf412dc414.tar.gz install-35d6f822b1af462ff62685a0507047bf412dc414.tar.bz2 install-35d6f822b1af462ff62685a0507047bf412dc414.zip | |
fix error display with required package missing
| -rw-r--r-- | install_packages.php | 3 |
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 |
