Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-01-19 22:32:57 -0600
committerAaron Griffin <aaronmgriffin@gmail.com>2009-01-19 22:32:57 -0600
commit773571c479c8c2c8150de804a01e3df3fcebefa6 (patch)
tree88f5e0ba563f80fafab7c6fbb5d2c06f24da38a4
parent8601b971af4604e106c46348e26c5b08a18de04d (diff)
Make sure download-repo.sh also gets the db file
Whoopsie Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xconfigs/install-iso/download-repo.sh3
1 files changed, 3 insertions, 0 deletions
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