From: hickert Date: Tue, 12 Aug 2008 12:07:16 +0000 (+0000) Subject: Fixed problem with new package lists - Timeout Closes #530 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8ff9871696994d2d6f14ae43464d32d301bf6ecf;p=gosa.git Fixed problem with new package lists - Timeout Closes #530 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12195 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 4933606d5..88806cade 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPackage.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPackage.inc @@ -353,7 +353,9 @@ class faiPackage extends plugin $actions = ""; } - if(!preg_match('/^freeze/', $this->FAIstate) && $this->acl_is_writeable("FAIdebconfInfo")){ + + if(isset($this->list[$usedName]['TEMPLATE']) && + !preg_match('/^freeze/', $this->FAIstate) && $this->acl_is_writeable("FAIdebconfInfo")){ $actions.= " "; } @@ -463,9 +465,11 @@ class faiPackage extends plugin */ function genPkgs($force = false) { + if(empty($this->FAIdebianRelease)) return; + if(!count($this->buffer) || $force){ $q = new gosaSupportDaemon(); - $attrs = array("distribution", "package","version", "section", "description", "timestamp"); + $attrs = array("distribution", "package","version", "section", "description", "timestamp","template"); $packages = array_keys($this->usedPackages);