index 26b10f27d88a6b405bb38907d18d02a9cf90a35e..a07c24240f40e50219970b4cf2a89e494eb67661 100644 (file)
$dsc= "";
if (preg_match('/^-/', $usedName)){
$dsc= " - "._("Package marked for removal");
- $usedName= preg_replace('/^-/', '! ', $usedName);
+ $usedName2= preg_replace('/^-/', '! ', $usedName);
+ }else{
+ $usedName2= $usedName;
}
if(isset($this->list[$usedName][1])){
- $a_ret[$usedName] = $usedName." [".$this->list[$usedName][1]."]".$c_str.$dsc;
+ $a_ret[$usedName] = $usedName2." [".$this->list[$usedName][1]."]".$c_str.$dsc;
}else{
- $a_ret[$usedName] = $usedName.$c_str.$dsc;
+ $a_ret[$usedName] = $usedName2.$c_str.$dsc;
}
}
}
}
}
}
+
+ /* Return plugin informations for acl handling */
+ function plInfo()
+ {
+ return (array(
+ "plDescription" => _("FAI Package list"),
+ "plSelfModify" => FALSE,
+ "plDepends" => array("objectClass" => "FAIclass"),
+ "cn" => _("Name"),
+ "description" => _("Description"),
+ "FAIpackage" => _("Packages"),
+ "FAIdebianSection" => _("Section"),
+ "FAIinstallMethod" => _("Install Method"),
+ "FAIdebianRelease" => _("Release")));
+ }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: