From 8ff9871696994d2d6f14ae43464d32d301bf6ecf Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 12 Aug 2008 12:07:16 +0000 Subject: [PATCH] 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 --- gosa-plugins/fai/admin/fai/class_faiPackage.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); -- 2.30.2