index c3b84bfe1d63a60b8d17d66c5e44b92695ac33a2..37b7f128a08f2c919daea22c5ef331ded99703f5 100644 (file)
var $SubObjects = array(); // All leafobjects of this object
var $FAIdebianRelease = ""; // The selected release
- var $FAIdebianSection = ""; // selected section
+ var $FAIdebianSection = array(); // selected section
var $FAIinstallMethod = "aptitude"; // hard coded
var $mirror = ""; // selected mirror
$this->ConfiguredPackages[$attr['FAIpackage'][0]][$attr['FAIvariable'][0]]=$tmp;
}
}
+ @log::log("view","fai/".get_class($this),$this->dn);
}
if (isset($this->attrs['FAIdebianSection']['count'])){
/* Assemble sections */
$repos= $this->getServerInfos();
- $this->FAIdebianSection= $repos[$this->FAIdebianRelease];
- $this->FAIdebianSection= array_unique($this->FAIdebianSection);
+ if(isset($repos[$this->FAIdebianRelease])){
+ $this->FAIdebianSection= $repos[$this->FAIdebianRelease];
+ $this->FAIdebianSection= array_unique($this->FAIdebianSection);
+ }
/* Assign Repository settings*/
$this->is_account = true;
prepare_to_save_FAI_object($use_dn,array(),true);
+ @log::log("remove","fai/".get_class($this),$use_dn,$this->attributes);
+
foreach($this->ConfiguredPackages as $pkgname => $attrs){
foreach($attrs as $name => $attr){
$pkgdn = "FAIvariable=".$name.",".$this->dn;
return($a_ret);
}
- function genPkgs(){
+ function genPkgs()
+ {
/* Generate a list off available packages for this mirror, section and release
*/
/* Only read this file if it wasn't read before */
prepare_to_save_FAI_object($this->dn,$this->attrs);
show_ldap_error($ldap->get_error(), sprintf(_("Saving of FAI/package list with dn '%s' failed."),$this->dn));
+
+ if($this->initially_was_account){
+ @log::log("modify","fai/".get_class($this),$this->dn,$this->attributes);
+ }else{
+ @log::log("create","fai/".get_class($this),$this->dn,$this->attributes);
+ }
/* Do object tagging */
$this->handle_object_tagging();