Make sure download-repo.sh also gets the db file
Whoopsie Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
parent
8601b971af
commit
773571c479
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user