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));