mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 23:32:06 -04:00
switch to requiring certbot version >= plugin version
This commit is contained in:
parent
e3f12df03b
commit
63db51a7ee
1 changed files with 3 additions and 2 deletions
|
|
@ -7,8 +7,9 @@ if [ ! -f "$SNAP/certbot-shared/certbot-version.txt" ]; then
|
|||
fi
|
||||
cb_installed=$(cat $SNAP/certbot-shared/certbot-version.txt)
|
||||
|
||||
# get required certbot version for plugin
|
||||
cb_required=$(grep -oP "certbot>=\K.*(?=')" $SNAP/setup.py)
|
||||
# get required certbot version for plugin. certbot version must be at least the plugin's
|
||||
# version. note that this is not the required version in setup.py, but the version number itself.
|
||||
cb_required=$(grep -oP "version = '\K.*(?=')" $SNAP/setup.py)
|
||||
|
||||
|
||||
python3 -c "import sys; from packaging import version; sys.exit(1) if\
|
||||
|
|
|
|||
Loading…
Reference in a new issue