[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:
parent
9be04c4b41
commit
383fcb596f
@ -43,7 +43,7 @@ PKGS=$(/usr/bin/pacman -Sl $REPO | cut -d' ' -f1,2 | tr ' ' '/')
|
|||||||
if [ -n "$PKGS" ]; then
|
if [ -n "$PKGS" ]; then
|
||||||
baseurl=""
|
baseurl=""
|
||||||
cachedir="/var/cache/pacman/pkg"
|
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
|
baseurl="$(dirname "$url")" #save for later
|
||||||
pkgname="$(basename "$url")"
|
pkgname="$(basename "$url")"
|
||||||
cachedpkg="$cachedir/$pkgname"
|
cachedpkg="$cachedir/$pkgname"
|
||||||
|
Loading…
Reference in New Issue
Block a user