From ea72acbb1ab4b6e3571baa3b12147eab80ae392f Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 11 Apr 2008 13:32:48 +0000 Subject: [PATCH] Updated support daemon package search git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10361 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_gosaSupportDaemon.inc | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index 2f3401e52..9ceccc240 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -134,7 +134,7 @@ class gosaSupportDaemon } - public function FAI_get_packages($release,$attrs, $package="") + public function FAI_get_packages($release,$attrs, $package = array()) { $this->reset_error(); $ret = array(); @@ -151,6 +151,16 @@ class gosaSupportDaemon $attr.= ""; } + /* Create list of attributes to fetch */ + $pkgs = ""; + foreach($package as $pkg){ + $pkgs .=" + like + ".$pkg." + "; + + } + /* Create Daemon query */ if(empty($package)){ $xml_msg = "
gosa_query_packages_list
GOSAGOSA". @@ -160,11 +170,17 @@ class gosaSupportDaemon }else{ $xml_msg = "
gosa_query_packages_list
GOSAGOSA". $attr. - " + " AND - ".$release." - ".$package." - + + ".$release." + + + OR + $pkgs + + + 0100
"; } -- 2.30.2