Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'letsencrypt-auto-source/pieces/bootstrappers/suse_common.sh')
-rwxr-xr-xletsencrypt-auto-source/pieces/bootstrappers/suse_common.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/letsencrypt-auto-source/pieces/bootstrappers/suse_common.sh b/letsencrypt-auto-source/pieces/bootstrappers/suse_common.sh
index c531cbe99..7fa28ce50 100755
--- a/letsencrypt-auto-source/pieces/bootstrappers/suse_common.sh
+++ b/letsencrypt-auto-source/pieces/bootstrappers/suse_common.sh
@@ -14,10 +14,20 @@ BootstrapSuseCommon() {
QUIET_FLAG='-qq'
fi
+ if zypper search -x python-virtualenv >/dev/null 2>&1; then
+ OPENSUSE_VIRTUALENV_PACKAGES="python-virtualenv"
+ else
+ # Since Leap 15.0 (and associated Tumbleweed version), python-virtualenv
+ # is a source package, and python2-virtualenv must be used instead.
+ # Also currently python2-setuptools is not a dependency of python2-virtualenv,
+ # while it should be. Installing it explicitly until upstream fix.
+ OPENSUSE_VIRTUALENV_PACKAGES="python2-virtualenv python2-setuptools"
+ fi
+
zypper $QUIET_FLAG $zypper_flags in $install_flags \
python \
python-devel \
- python-virtualenv \
+ $OPENSUSE_VIRTUALENV_PACKAGES \
gcc \
augeas-lenses \
libopenssl-devel \