# Retry installing package 5 times if necessary
for i in {0..5}
do
+ echo "$i: Installing $pkg"
if [ "$(dpkg-query -W -f='${Status}' "$pkg" 2>/dev/null | grep -c "ok installed")" -eq 0 ]; then
apt-cache policy "$pkg"
apt-get install "$pkg"
echo '---> Disabling automatic daily upgrades'
sed -ine 's/"1"/"0"/g' /etc/apt/apt.conf.d/10periodic
echo 'APT::Periodic::Unattended-Upgrade "0";' >> /etc/apt/apt.conf.d/10periodic
+
+ # Install packaging job dependencies for building debs
+ ensure_ubuntu_install build-essential devscripts equivs dh-systemd python-yaml \
+ python-jinja2 gdebi
+
}
all_systems() {