summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 38b7cea)
raw | patch | inline | side by side (parent: 38b7cea)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 12 Oct 2005 13:46:40 +0000 (13:46 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 12 Oct 2005 13:46:40 +0000 (13:46 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1564 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiPackage.inc | patch | blob | history |
index 89d0976a48ff926bb4cc14498d92d6fa32239052..b346ed4442de2a5b5bfe4d67f81a1a6429b53e43 100644 (file)
var $FAIdebianRelease = ""; // The selected release
var $FAIdebianSection = ""; // selected section
var $FAIdebianMirror = ""; // selected mirror
+ var $mirror = ""; // selected mirror
var $servers = array(); // All available servers
var $releases = array(); // All possible releases
}
$this->confDir = CONFIG_DIR."/fai/";
$this->FAIpackage = array();
+
+ /* Extract mirror location */
+ $this->mirror= preg_replace("!^[^/]+//([^/]+).*$!", '$1', $this->FAIdebianMirror);
}
function execute()
$this->genMirror();
+ /* Check if we exist already - no need to ask for revisions, etc. then */
+ if ($this->dn != "new"){
+ $this->newDialogShown= true;
+ }
+
if((!$this->is_account)&&(!$this->newDialogShown)){
if($this->dialog==NULL){
$this->buffer=array();
$a_ret = array();
foreach($this->FAIdebianSection as $sec){
- $strID= "/etc/gosa/fai/".$this->FAIdebianMirror."/".$this->FAIdebianRelease."/".$sec;
+ $strID= "/etc/gosa/fai/".$this->mirror."/".$this->FAIdebianRelease."/".$sec;
if(!is_file($strID)){
print_red(sprintf(_("Package file don't exists '%s'."),$strID));