Fix auto-enable arch repos

After enabling arch repos,  need to download database files.  Otherwise, calls to
`pacman -S` return errors that are suppressed by redirection to /dev/null.

Error Message:

```sh
warning: database file for 'extra' does not exist (use "-Sy" to download)
error: failed to prepare transcation (could not find database)
```

Fixes: https://github.com/LukeSmithxyz/LARBS/issues/393
This commit is contained in:
Jamie 2021-10-25 12:12:45 -04:00 committed by Jberczel
parent 8a30c54cd4
commit 656168a885

View file

@ -77,6 +77,7 @@ refreshkeys() { \
echo "[$repo]
Include = /etc/pacman.d/mirrorlist-arch" >> /etc/pacman.conf
done
pacman -Sy >/dev/null 2>&1
pacman-key --populate archlinux
;;
esac ;}