Make sure download-repo.sh also gets the db file

Whoopsie

Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
Aaron Griffin 2009-01-19 22:32:57 -06:00
parent 8601b971af
commit 773571c479

View File

@ -35,10 +35,13 @@ fi
PKGS=$(/usr/bin/pacman -Slq $REPO) PKGS=$(/usr/bin/pacman -Slq $REPO)
if [ -n "$PKGS" ]; then if [ -n "$PKGS" ]; then
baseurl=""
for url in $(/usr/bin/pacman -Sp $PKGS | grep '://'); do for url in $(/usr/bin/pacman -Sp $PKGS | grep '://'); do
baseurl="$(dirname "$url")" #save for later
pkgname="$(basename "$url")" pkgname="$(basename "$url")"
wget -nv "$url" -O "$DEST/$pkgname" wget -nv "$url" -O "$DEST/$pkgname"
done done
wget -nv "$baseurl/$REPO.db.tar.gz" -O "$DEST/$REPO.db.tar.gz"
else else
echo "No packages to download... what'd you break?" echo "No packages to download... what'd you break?"
exit 1 exit 1