From 383fcb596f1cac763e92964d419be68df79facf3 Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Mon, 28 Jun 2010 23:51:19 -0300 Subject: [PATCH] [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 --- configs/syslinux-iso/download-repo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/syslinux-iso/download-repo.sh b/configs/syslinux-iso/download-repo.sh index 800d49a..8655a8d 100755 --- a/configs/syslinux-iso/download-repo.sh +++ b/configs/syslinux-iso/download-repo.sh @@ -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"