[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Quilt-dev] [PATCH] setup: Fix link creation
From: |
Jean Delvare |
Subject: |
[Quilt-dev] [PATCH] setup: Fix link creation |
Date: |
Thu, 22 Jan 2015 08:20:35 +0100 |
Fix function create_symlink. If the link has an absolute path then
its target should be set to an absolute path as well. This fixes the
use of "quilt setup" with an absolute -d path and a relative
--sourcedir path.
---
quilt/setup.in | 1 +
1 file changed, 1 insertion(+)
--- a/quilt/setup.in
+++ b/quilt/setup.in
@@ -86,6 +86,7 @@ create_symlink()
local target=$1 link=$2 up
if [ "${target:0:1}" = / -o "${link:0:1}" = / ]
then
+ [ "${target:0:1}" = / ] || target=$PWD/$target
ln -s "$target" "$link"
return
fi
--
Jean Delvare
SUSE L3 Support
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Quilt-dev] [PATCH] setup: Fix link creation,
Jean Delvare <=