common: rebuild-template-script: add a janky function to install packages from local repos

eopkg repo priority is borked, so we have to do it like this, solbuild
does something similar.
This commit is contained in:
Joey Riches 2022-03-24 10:22:47 +00:00
parent 2fa1e7ffaa
commit 1568e5e20c

View file

@ -178,6 +178,16 @@ verify() {
popd
}
# All sorts of jank to install our built packages. Eopkg repos are all sorts of bork.
install() {
sudo eopkg ar ${MAINPAK} /var/lib/solbuild/local-${MAINPAK}/eopkg-index.xml.xz
sudo eopkg er ${MAINPAK}
sudo eopkg dr Unstable unstable
sudo eopkg up
sudo eopkg er Unstable unstable
sudo eopkg rr ${MAINPAK}
}
# Add and commit changes before publishing.
# TODO: add an excludes mechanism to allow a non-generic message for some packages.
commit() {