summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-05-07 13:28:31 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-05-07 13:28:31 -0300
commitd69bbc8b116b793a80100cd4b26f1dc103e30248 (patch)
tree2460c159ad6aba00d44e20231e25d26eecbd4054 /etc/inc/pkg-utils.inc
parent57a608c5b63a3644e8573d6a1e9352e79b17fb06 (diff)
downloadpfsense-d69bbc8b116b793a80100cd4b26f1dc103e30248.zip
pfsense-d69bbc8b116b793a80100cd4b26f1dc103e30248.tar.gz
Remove unused function get_pbi_binaries()
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc38
1 files changed, 0 insertions, 38 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 74cabd0..e1c2f6d 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -296,44 +296,6 @@ function sync_package($package_name) {
}
}
-function get_pbi_binaries($pbi) {
- $result = array();
-
- if (empty($pbi)) {
- return $result;
- }
-
- $gb = exec("/usr/local/sbin/pbi_info {$pbi} | /usr/bin/awk '/Prefix/ {print $2}'", $pbi_prefix);
- $pbi_prefix = $pbi_prefix[0];
-
- if (empty($pbi_prefix)) {
- return $result;
- }
-
- foreach (array('bin', 'sbin') as $dir) {
- if (!is_dir("{$pbi_prefix}/{$dir}")) {
- continue;
- }
-
- $files = glob("{$pbi_prefix}/{$dir}/*.pbiopt");
- foreach ($files as $f) {
- $pbiopts = file($f, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
- foreach ($pbiopts as $pbiopt) {
- if (!preg_match('/^TARGET:\s+(.*)$/', $pbiopt, $matches)) {
- continue;
- }
-
- $result[] = array(
- 'target' => preg_replace('/\.pbiopt$/', '', $f),
- 'link_name' => $matches[1]);
- }
- }
- }
-
- return $result;
-}
-
-
function install_package($package, $pkg_info = "", $force_install = false) {
global $g, $config, $static_output, $pkg_interface;
OpenPOWER on IntegriCloud