From: hickert Date: Thu, 27 Mar 2008 09:02:53 +0000 (+0000) Subject: Updated fai package X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4944da3a52b0f8d4ff7ebca1b155481993680321;p=gosa.git Updated fai package git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10013 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiPackage.inc b/gosa-plugins/fai/admin/fai/class_faiPackage.inc index f3df812bb..6d60ba9f4 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPackage.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPackage.inc @@ -51,6 +51,7 @@ class faiPackage extends plugin var $FAIstate = ""; var $view_logged = FALSE; var $base; + var $FAIpackage ; var $FAIinstallMethods = array( "install", "ninstall", "remove", "dselect-upgrade", "taskinst", "taskrm", @@ -421,10 +422,11 @@ class faiPackage extends plugin function genPkgs() { - if($this->buffer === NULL || !count($this->buffer)){ + $start = microtime(1); + if(1 | $this->buffer === NULL || !count($this->buffer)){ $this->buffer = array(); $q = new gosaSupportDaemon(); - $attrs = array("distribution", "package","version", "section", "description", "timestamp","template=''"); + $attrs = array("distribution", "package","version=''", "section", "description", "timestamp=''","template=''"); $ret = $q->FAI_get_packages($this->FAIdebianRelease,$attrs); if($q->is_error()){ msg_dialog::display(_("Service infrastructure"),msgPool::siError($q->get_error()),ERROR_DIALOG); @@ -434,6 +436,9 @@ class faiPackage extends plugin } } } + + printf("%0.6f",(microtime(1) - $start)); + print_a($this->buffer); return $this->buffer; }