winemaker: Fix going up one directory level.
This commit is contained in:
parent
4dd043a583
commit
c8f4154874
|
@ -1810,7 +1810,11 @@ sub search_from($$)
|
|||
$real_path.="./";
|
||||
} elsif ($component eq "..") {
|
||||
# Go up one level
|
||||
$dirname=dirname($dirname) . "/";
|
||||
if ($dirname =~ /\.\.\/$/) {
|
||||
$dirname.="../";
|
||||
} else {
|
||||
$dirname=dirname($dirname) . "/";
|
||||
}
|
||||
$real_path.="../";
|
||||
} else {
|
||||
# The file/directory may have been renamed before. Also try to
|
||||
|
|
Loading…
Reference in New Issue