There's no zypper command on the zypper CLI

This commit is contained in:
Pedro Algarvio 2020-01-30 13:14:47 +00:00
parent cab2c4afaa
commit 024a40f33f
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF

View file

@ -5968,8 +5968,8 @@ __check_and_refresh_suse_pkg_repo() {
__version_lte() {
if ! __check_command_exists python; then
zypper zypper --non-interactive install --replacefiles --auto-agree-with-licenses python || \
zypper zypper --non-interactive install --auto-agree-with-licenses python || return 1
zypper --non-interactive install --replacefiles --auto-agree-with-licenses python || \
zypper --non-interactive install --auto-agree-with-licenses python || return 1
fi
if [ "$(python -c 'import sys; V1=tuple([int(i) for i in sys.argv[1].split(".")]); V2=tuple([int(i) for i in sys.argv[2].split(".")]); print V1<=V2' "$1" "$2")" = "True" ]; then