Code

Updated FAI package handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Mar 2008 11:39:22 +0000 (11:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Mar 2008 11:39:22 +0000 (11:39 +0000)
- gosa-si

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9969 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_gosaSupportDaemon.inc

index af43e3bee169902dae458a7eaebed94528e78e95..219fdbb36ca2ed0d03dcce6ff3d5524e5527e3c8 100644 (file)
@@ -134,12 +134,23 @@ class gosaSupportDaemon
   }
 
 
-  public function FAI_get_packages($release)
+  public function FAI_get_packages($release,$package = "")
   {
     $this->reset_error();
 
-    $xml_msg = "<xml><header>gosa_query_packages_list</header><target>GOSA</target><source>GOSA</source>".
-      "<where><clause><phrase><distribution>".$release."</distribution></phrase></clause></where></xml>";
+    if(empty($package)){
+      $xml_msg = "<xml><header>gosa_query_packages_list</header><target>GOSA</target><source>GOSA</source>".
+        "<where><clause><phrase><distribution>".$release."</distribution></phrase></clause></where></xml>";
+    }else{
+      $xml_msg = 
+        "<xml><header>gosa_query_packages_list</header><target>GOSA</target><source>GOSA</source>".
+          "<where><clause>".
+            "<connector>AND</connector>".
+            "<phrase><distribution>".$release."</distribution></phrase>".
+            "<phrase><package>".$package."</package></phrase>".
+          "</clause></where>".
+        "</xml>";
+    }
 
     $ret = array();
     if($this->connect()){