summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-05 20:35:38 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-05 20:35:38 +0000
commitc2c40105cced1eed5f6d036e83cbf5389fd508d4 (patch)
tree388e945053964cb15e4abc98eb60c06b7df0da86 /etc/inc
parentb893276df48ef97fcc354e476fe6626b7f498d90 (diff)
downloadpfsense-c2c40105cced1eed5f6d036e83cbf5389fd508d4.zip
pfsense-c2c40105cced1eed5f6d036e83cbf5389fd508d4.tar.gz
Correctly return packages description
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/pfsense-utils.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index fe5e0e4..d6e68eb 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -164,7 +164,7 @@ function return_filename_as_string($filename) {
return file_get_contents($filename);
} else {
return false;
- }
+ }
}
/****f* pfsense-utils/find_package_description
@@ -178,9 +178,9 @@ function find_package_description($package) {
if(!file_exists("{$g['tmp_path']}/pkg_config.xml"))
fetch_latest_pkg_config();
$pkg_config = parse_xml_config_pkg("{$g['tmp_path']}/pkg_config.xml", "pfsensepkgs");
- foreach($pkgs as $index) {
+ foreach($pkg_config['packages']['package'] as $index) {
if($index['name'] == $package)
- return $pkg_config['packages']['package'][$index]['descr']
+ return $index['descr'];
}
return;
}
@@ -1276,4 +1276,4 @@ function read_body($ch, $string) {
return $length;
}
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud