diff options
author | Allan McRae <allan@archlinux.org> | 2011-06-28 14:47:35 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-30 17:28:18 +0200 |
commit | e92905a2c8c14c7855e2841f44d3c139aa40844c (patch) | |
tree | 25592e3224f949c3ee79fc9fe972c4ffc9bb2594 | |
parent | 9aab1440cacf143b62f05ccfac0e7917ef9d4c45 (diff) | |
download | pacman-e92905a2c8c14c7855e2841f44d3c139aa40844c.tar.gz pacman-e92905a2c8c14c7855e2841f44d3c139aa40844c.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>
-rw-r--r-- | scripts/makepkg.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index ed5cdef7..edfa9e31 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -518,7 +518,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 |