[syslinux-iso] download-repo.sh only download packages from specified repo

Fixes FS#18733 http://bugs.archlinux.org/task/18733

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
Gerardo Exequiel Pozzi 2010-06-28 23:51:19 -03:00
parent 9be04c4b41
commit 383fcb596f

View File

@ -43,7 +43,7 @@ PKGS=$(/usr/bin/pacman -Sl $REPO | cut -d' ' -f1,2 | tr ' ' '/')
if [ -n "$PKGS" ]; then
baseurl=""
cachedir="/var/cache/pacman/pkg"
for url in $(/usr/bin/pacman -Sp $PKGS | grep '://'); do
for url in $(/usr/bin/pacman -Sdp $PKGS | grep '://'); do
baseurl="$(dirname "$url")" #save for later
pkgname="$(basename "$url")"
cachedpkg="$cachedir/$pkgname"