We may have old or no metadata for packages at all so package
installations may fail. As such, lets sync with upstream mirrors
before we try to install any packages.
Change-Id: I15f73e46d4f0cae2c50d23a92e0f4da83821039e
Signed-off-by: Markos Chandras <mchandras@suse.de>
[openssl]=openssl
)
EXTRA_PKG_DEPS=( python-xml )
+ sudo zypper -n ref
# NOTE (cinerama): we can't install python without removing this package
# if it exists
if $(${CHECK_CMD} patterns-openSUSE-minimal_base-conflicts &> /dev/null); then
[openssl]=openssl
)
EXTRA_PKG_DEPS=()
+ sudo apt-get update
elif [ -x '/usr/bin/dnf' ] || [ -x '/usr/bin/yum' ]; then
OS_FAMILY="RedHat"
PKG_MANAGER=$(which dnf || which yum)
[wget]=wget
[openssl]=openssl
)
+ sudo yum update --assumeno
EXTRA_PKG_DEPS=()
else
echo "ERROR: Supported package manager not found. Supported: apt,yum,zypper"