From: hickert Date: Tue, 25 Mar 2008 11:39:31 +0000 (+0000) Subject: Updated FAI package handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9fff15e2677faeb0d1ea702cd8129dc60da827c1;p=gosa.git Updated FAI package handling - gosa-si git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9970 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 79cd57a0b..013421047 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPackage.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPackage.inc @@ -263,7 +263,7 @@ class faiPackage extends plugin $pkg_config = $this->ConfiguredPackages[$pkg]; } - $this->dialog = new faiPackageConfiguration($this->config, $this->dn,$pkg, $path, $pkg_config); + $this->dialog = new faiPackageConfiguration($this->config, $this->dn,$pkg, $this->FAIdebianRelease , $pkg_config); $this->is_dialog =true; } diff --git a/gosa-plugins/fai/admin/fai/class_faiPackageConfiguration.inc b/gosa-plugins/fai/admin/fai/class_faiPackageConfiguration.inc index f132c3b04..7212e1c3b 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPackageConfiguration.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPackageConfiguration.inc @@ -10,11 +10,15 @@ class faiPackageConfiguration extends plugin var $Debconf_handle = NULL; var $pkg_config ; var $obj; + var $release; - function faiPackageConfiguration (&$config, $dn= NULL,$obj,$path,$pkg_config) + function faiPackageConfiguration (&$config, $dn= NULL,$obj,$release,$pkg_config) { plugin::plugin ($config, $dn); $this->obj = $obj; + $this->release = $release; + + # $this->Debconf_handle = new debconf(); # $this->Debconf_handle->set_template_directory($path); # $this->Debconf_handle->set_package($this->obj); @@ -34,6 +38,11 @@ class faiPackageConfiguration extends plugin /* Call parent execute */ plugin::execute(); + $q = new gosaSupportDaemon(); + $ret = $q->FAI_get_packages($this->release,$this->obj); + print_a($ret); + + return("Not implemented yet"); /* Fill templating stuff */