From 420877cd4e56008c09ab6ff0b8e506532742e031 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 19 Oct 2005 13:47:42 +0000 Subject: [PATCH] Fixed directory handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1624 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiPackage.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); -- 2.30.2