Fix core package format to include repo

If testing is enabled, -Sp will give us testing URLs.
Use the $repo/$pkgname format for packages so we get
the right files

Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
Aaron Griffin 2009-01-20 00:33:38 -06:00
parent f87259b3b8
commit c2b2a30b81

View File

@ -32,7 +32,8 @@ fi
[ -d "$DEST" ] || mkdir -p "$DEST"
PKGS=$(/usr/bin/pacman -Slq $REPO)
#Ensure we have core/pkgname format, so we don't get crap from other repos
PKGS=$(/usr/bin/pacman -Sl $REPO | cut -d' ' -f1,2 | tr ' ' '/')
if [ -n "$PKGS" ]; then
baseurl=""