summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-05-07 11:50:02 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-05-07 11:50:02 -0300
commit24fa00fc9abdb486ee0d212131d0395e258ee4fb (patch)
treee2dfe84eed32f0ac8c649110ce8f1c044e772081 /etc
parent97c88dfa440d1874e071bbf0219ff19d0fd9aacd (diff)
downloadpfsense-24fa00fc9abdb486ee0d212131d0395e258ee4fb.zip
pfsense-24fa00fc9abdb486ee0d212131d0395e258ee4fb.tar.gz
Drop is_freebsd_pkg_installed() in favour of is_pkg_installed()
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pkg-utils.inc16
1 files changed, 1 insertions, 15 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 6737ed3..290bb19 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -226,20 +226,6 @@ function resync_all_package_configs($show_message = false) {
}
/*
- * is_freebsd_pkg_installed() - Check /var/db/pkg to determine whether or not a FreeBSD
- * package is installed.
- */
-function is_freebsd_pkg_installed($pkg) {
- if (!$pkg) {
- return;
- }
- $output = "";
- $_gb = exec("/usr/local/sbin/pbi_info " . escapeshellarg($pkg) . ' 2>/dev/null', $output, $retval);
-
- return (intval($retval) == 0);
-}
-
-/*
* get_pkg_depends($pkg_name, $filetype = ".xml", $format = "files", return_nosync = 1): Return a package's dependencies.
*
* $filetype = "all" || ".xml", ".tgz", etc.
@@ -755,7 +741,7 @@ function install_package_xml($pkg) {
$pkg_name = substr(reverse_strrchr($pkgdep, "."), 0, -1);
$static_output = $static_orig . "\nChecking for package installation... ";
update_output_window($static_output);
- if (!is_freebsd_pkg_installed($pkg_name)) {
+ if (!is_pkg_installed($pkg_name)) {
if (!pkg_fetch_recursive($pkg_name, $pkgdep, 0, $pkg_info['depends_on_package_base_url'])) {
$static_output .= "of {$pkg_name} failed!\n\nInstallation aborted.";
update_output_window($static_output);
OpenPOWER on IntegriCloud