mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-06 03:18:02 -05:00
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:
parent
9aab1440ca
commit
e92905a2c8
@ -518,7 +518,7 @@ download_sources() {
|
|||||||
local file=$(get_filepath "$netfile" || true)
|
local file=$(get_filepath "$netfile" || true)
|
||||||
if [[ -n "$file" ]]; then
|
if [[ -n "$file" ]]; then
|
||||||
msg2 "$(gettext "Found %s")" "${file##*/}"
|
msg2 "$(gettext "Found %s")" "${file##*/}"
|
||||||
rm -f "$srcdir/$file"
|
rm -f "$srcdir/${file##*/}"
|
||||||
ln -s "$file" "$srcdir/"
|
ln -s "$file" "$srcdir/"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user