diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-27 20:26:39 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-27 20:26:39 +0000 |
commit | 131781ba81073fa56a23d556a0493be13e8ebe12 (patch) | |
tree | 00062fb9588ff4d64ddc8e56e2e192a202f72441 | |
parent | e49c7b227696838dc0f1bcd4b9c61da2aabc8cb5 (diff) | |
download | pfsense-131781ba81073fa56a23d556a0493be13e8ebe12.zip pfsense-131781ba81073fa56a23d556a0493be13e8ebe12.tar.gz |
Add verifyinstalledpkg tag. This tag can be used to verify a different package has been installed veruses always relying on the package name.
-rwxr-xr-x | usr/local/www/pkg_mgr_install.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index 79e11d5..755860b 100755 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -415,7 +415,10 @@ foreach ($packages_to_install as $id) { if ($pkgent['depends_on_package_base_url'] <> "" or $pkgent['pfsense_package_base_url'] <> "") { $status = exec_command_and_return_text("ls /var/db/pkg | grep " . $pkgent['name']); - fwrite($fd_log, "ls /var/db/pkg | grep " . $pkgent['name'] . "\n" . $status); + $package_to_verify = $pkgent['name']; + if($pkgent['verifyinstalledpkg'] <> "") + $package_to_verify = $pkgent['verifyinstalledpkg']; + fwrite($fd_log, "ls /var/db/pkg | grep " . $package_to_verify . "\n" . $status); if($status <> "") { update_status("Package installation completed."); fwrite($fd_log, "Package installation completed.\n"); |