buildpackages: zypper refresh before first zypper install
Refresh is needed to avoid errors like "Media source 'https://...' does not
contain the desired medium" when we use live repositories.
@@ -36,7 +36,8 @@ suse=false
[[ $codename =~ sle ]] && suse=true
if [ "$suse" = true ] ; then
- sudo zypper -n install --no-recommends git
+ sudo zypper --non-interactive --no-gpg-checks refresh
+ sudo zypper --non-interactive install --no-recommends git
else
sudo yum install -y git
fi
