From 773571c479c8c2c8150de804a01e3df3fcebefa6 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 19 Jan 2009 22:32:57 -0600 Subject: Make sure download-repo.sh also gets the db file Whoopsie Signed-off-by: Aaron Griffin --- configs/install-iso/download-repo.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configs') diff --git a/configs/install-iso/download-repo.sh b/configs/install-iso/download-repo.sh index b5a09bd..31a3c79 100755 --- a/configs/install-iso/download-repo.sh +++ b/configs/install-iso/download-repo.sh @@ -35,10 +35,13 @@ fi PKGS=$(/usr/bin/pacman -Slq $REPO) if [ -n "$PKGS" ]; then + baseurl="" for url in $(/usr/bin/pacman -Sp $PKGS | grep '://'); do + baseurl="$(dirname "$url")" #save for later pkgname="$(basename "$url")" wget -nv "$url" -O "$DEST/$pkgname" done + wget -nv "$baseurl/$REPO.db.tar.gz" -O "$DEST/$REPO.db.tar.gz" else echo "No packages to download... what'd you break?" exit 1 -- cgit v1.2.3-70-g09d2