index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Eli Schwartz <eschwartz@archlinux.org> | 2019-11-25 19:07:56 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-11-26 10:22:16 +1000 |
commit | 349c22d043290ccd0cce9f30981f5415e295442a (patch) | |
tree | 7b7ebb20c2810873aab51034cba36dcc09affbee /scripts/libmakepkg | |
parent | 55233b69c74a087ff405d3f768e5303dacaf8129 (diff) |
-rw-r--r-- | scripts/libmakepkg/source.sh.in | 3 | ||||
-rw-r--r-- | scripts/libmakepkg/source/file.sh.in | 3 |
diff --git a/scripts/libmakepkg/source.sh.in b/scripts/libmakepkg/source.sh.in index 16db14af..4eaf6269 100644 --- a/scripts/libmakepkg/source.sh.in +++ b/scripts/libmakepkg/source.sh.in @@ -75,12 +75,11 @@ extract_sources() { get_all_sources_for_arch 'all_sources' for netfile in "${all_sources[@]}"; do - local file=$(get_filename "$netfile") local proto=$(get_protocol "$netfile") if declare -f extract_$proto > /dev/null; then extract_$proto "$netfile" else - extract_file "$file" + extract_file "$netfile" fi done } diff --git a/scripts/libmakepkg/source/file.sh.in b/scripts/libmakepkg/source/file.sh.in index 7297a1c6..df4256f7 100644 --- a/scripts/libmakepkg/source/file.sh.in +++ b/scripts/libmakepkg/source/file.sh.in @@ -83,8 +83,9 @@ download_file() { } extract_file() { - local file=$1 + local netfile=$1 + local file=$(get_filename "$netfile") local filepath=$(get_filepath "$file") rm -f "$srcdir/${file}" ln -s "$filepath" "$srcdir/" |