From: cajus Date: Wed, 19 Oct 2005 13:47:42 +0000 (+0000) Subject: Fixed directory handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=420877cd4e56008c09ab6ff0b8e506532742e031;p=gosa.git Fixed directory handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1624 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiPackage.inc b/plugins/admin/fai/class_faiPackage.inc index dd942cf0b..f2c3d74d5 100644 --- a/plugins/admin/fai/class_faiPackage.inc +++ b/plugins/admin/fai/class_faiPackage.inc @@ -365,10 +365,10 @@ class faiPackage extends plugin $this->buffer=array(); $a_ret = array(); foreach($this->FAIdebianSection as $sec){ - $strID= "/etc/gosa/fai/".$this->FAIdebianMirror."/".$this->FAIdebianRelease."/".$sec; + $strID= "/etc/gosa/fai/".preg_replace("#^[^/]+//([^/]+).*$#","\\1",$this->FAIdebianMirror)."/".$this->FAIdebianRelease."/".$sec; if(!is_file($strID)){ - print_red(sprintf(_("Package file don't exists '%s'."),$strID)); + print_red(sprintf(_("Package file '%s' does not exist."),$strID)); $this->FAIdebianMirror=""; unset($this->buffer); return(array());