summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2008-08-09 15:54:29 +1000
committerDan McGee <dan@archlinux.org>2008-08-09 07:23:37 -0500
commit57bd8974c73571d827617f4df0a6917f13696493 (patch)
tree01a9bf686a3cdd80b6e87591a6acfc9496ed3ffb
parentd8f8a126658a25fdad5e9fb00b1b0838a7e93c68 (diff)
downloadpacman-57bd8974c73571d827617f4df0a6917f13696493.tar.xz
Fix creation of source package with local source files
Fixes FS#11149. Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 3604d104..c5dbed9f 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -957,7 +957,7 @@ create_srcpackage() {
local file=$(strip_url "$netfile")
if [ -f "$netfile" ]; then
msg2 "$(gettext "Adding %s...")" "$netfile"
- ln -s $netfile "${srclinks}/${pkgname}"
+ ln -s "${startdir}/$netfile" "${srclinks}/${pkgname}"
elif [ "$SOURCEONLY" = "2" -a -f "$SRCDEST/$file" ]; then
msg2 "$(gettext "Adding %s...")" "$file"
ln -s "$SRCDEST/$file" "${srclinks}/${pkgname}/"