summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-22 20:14:48 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-22 20:14:48 +0000
commit27d671c82276858d2512391a984c6f5513c708df (patch)
tree4679faed5eadc690183b4aede6dd77b3e999db33 /etc/inc/pkg-utils.inc
parentffe8bac2a4e189130170c99c62354ecf62c1fab7 (diff)
downloadpfsense-27d671c82276858d2512391a984c6f5513c708df.zip
pfsense-27d671c82276858d2512391a984c6f5513c708df.tar.gz
Correct variable
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 748497e..dfa7f81 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -170,7 +170,7 @@ function get_pkg_depends($pkg_name, $filetype = ".xml", $format = "files", $retu
if (($return_nosync == 0) && (isset($item['nosync']))) continue; // Do not return depends with nosync set if not required.
$depend_file = substr(strrchr($item['item']['0'], '/'),1); // Strip URLs down to filenames.
$depend_name = substr(substr($depend_file,0,strpos($depend_file,".")+1),0,-1); // Strip filename down to dependency name.
- if (($filetype != "all") && (!preg_match("/${filetype}/i", $depend_file))) continue;
+ if (($filetype != "all") && (!preg_match("/{$filetype}/i", $depend_file))) continue;
if ($item['prefix'] != "") {
$prefix = $item['prefix'];
} else {
OpenPOWER on IntegriCloud