From 63db51a7ee14af9bea1a33c67def5c99a7183f1f Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Tue, 21 Jul 2020 14:13:14 -0700 Subject: switch to requiring certbot version >= plugin version --- certbot-dns-dnsimple/snap/hooks/post-refresh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/certbot-dns-dnsimple/snap/hooks/post-refresh b/certbot-dns-dnsimple/snap/hooks/post-refresh index dd15794a4..fc1e6667b 100644 --- a/certbot-dns-dnsimple/snap/hooks/post-refresh +++ b/certbot-dns-dnsimple/snap/hooks/post-refresh @@ -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\ -- cgit v1.2.3