2015-09-08 22:40:33 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
if [[ "$#" < 1 ]]; then
|
|
|
|
echo "USAGE: $0 packages..."
|
|
|
|
fi
|
|
|
|
|
2016-11-25 20:21:58 +00:00
|
|
|
pkgs=""
|
2015-09-08 22:40:33 +00:00
|
|
|
for pkg in "$@"
|
|
|
|
do
|
|
|
|
cp -- "$pkg" "/data/containers/login/rootfs/var/lib/aurrepo/"
|
|
|
|
name="$(basename $pkg)"
|
|
|
|
lxc-attach -n login -- sudo -u aurrepo gpg --detach-sign --no-armor "/var/lib/aurrepo/$name"
|
2016-11-25 20:21:58 +00:00
|
|
|
pkgs="$pkgs /var/lib/aurrepo/$name"
|
2015-09-08 22:40:33 +00:00
|
|
|
done
|
2016-11-25 20:21:58 +00:00
|
|
|
|
|
|
|
lxc-attach -n login -- pacman -U $pkgs
|
|
|
|
lxc-attach -n login -- sudo -u aurrepo aurrepo --sign --verbose
|