diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index ed5cdef..edfa9e3 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
--
1.7.6
06-29-2011, 08:19 PM
Rémy Oudompheng
makepkg: fix removing symbolic link
On Wed 29 June 2011 at 16:05 +1000, Allan McRae wrote:
> 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>
On Wed 29 June 2011 at 16:05 +1000, Allan McRae wrote:
> 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>