summaryrefslogtreecommitdiffstats
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-06-28 14:47:35 +0200
committerDan McGee <dan@archlinux.org>2011-08-10 15:08:13 +0200
commitc493eef643ecb3a54c79083c51a8975f816ed9de (patch)
tree7a3130d417d29004df67a2eaa87114ec92258102 /scripts/makepkg.sh.in
parent05608ee57e89c1f55a573377f90c8025afd7c618 (diff)
downloadpacman-c493eef643ecb3a54c79083c51a8975f816ed9de.tar.gz
pacman-c493eef643ecb3a54c79083c51a8975f816ed9de.tar.xz
makepkg: fix removing symbolic link
The path was not being stripped from $file before prefixing with $srcdir resulting in the attempted removal of a very weird filename. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org> (cherry picked from commit e92905a2c8c14c7855e2841f44d3c139aa40844c)
Diffstat (limited to 'scripts/makepkg.sh.in')
-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 3ace9450..b0b08823 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -509,7 +509,7 @@ download_sources() {
local file=$(get_filepath "$netfile" || true)
if [[ -n "$file" ]]; then
msg2 "$(gettext "Found %s")" "${file##*/}"
- rm -f "$srcdir/$file"
+ rm -f "$srcdir/${file##*/}"
ln -s "$file" "$srcdir/"
continue
fi