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>
This commit is contained in:
Allan McRae 2011-06-28 22:47:35 +10:00 committed by Dan McGee
parent 9aab1440ca
commit e92905a2c8
1 changed files with 1 additions and 1 deletions

View File

@ -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