SHA256
1
0
forked from pool/quilt
quilt/hackweek-11-14-setup-fix-link-creation.patch
Jean Delvare 6732de62cf - Update upstream references.
- quilt-el-fix-tramp-support.patch: quilt-el: Fix tramp support.
- quilt-el-fix-patch-select-completion.patch: quilt-el: Fix patch
  select completion.
- hackweek-11-13-setup-let-normalize_path-deal-with-dot.patch:
  setup: Let normalize_path deal with ".".
- hackweek-11-14-setup-fix-link-creation.patch: setup: Fix link
  creation.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/quilt?expand=0&rev=94
2015-01-28 10:58:31 +00:00

23 lines
719 B
Diff

From: Jean Delvare <jdelvare@suse.de>
Date: Sat, 24 Jan 2015 21:32:04 +0100
Subject: setup: Fix link creation
Upstream: Committed (c55c1993ffee5d137ff40fcab0f59520ddcb00bf)
Fix funtion 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.
diff --git a/quilt/setup.in b/quilt/setup.in
index 7f69f35..ddb1f00 100644
--- 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