From: Joey Hess Date: Tue, 30 Jun 2009 02:16:56 +0000 (-0400) Subject: layout X-Git-Tag: 7.3.0~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d8b5ce9376d8ed73ebb74bd1ca206105b06adebd;p=debhelper.git layout --- diff --git a/Debian/Debhelper/Buildsystem.pm b/Debian/Debhelper/Buildsystem.pm index 6eca336..209f070 100644 --- a/Debian/Debhelper/Buildsystem.pm +++ b/Debian/Debhelper/Buildsystem.pm @@ -186,9 +186,11 @@ sub _rel2rel { if (File::Spec->file_name_is_absolute($path)) { return $path; - } elsif (File::Spec->file_name_is_absolute($base)) { + } + elsif (File::Spec->file_name_is_absolute($base)) { return File::Spec->rel2abs($path, $root); - } else { + } + else { return File::Spec->abs2rel( File::Spec->rel2abs($path, $root), File::Spec->rel2abs($base, $root)