certbot/letsencrypt-auto-source
Adrien Ferrand c2d9ea1f61 Protect certbot-auto against non numerical version release in some RPM distributions (#6913)
Fixes #6912

Bash evaluate all condition in a predicate statement, eg. `"$SOMEVAR" = "test" -a "$ANOTHERVAR" = "test2"`, even if it is not necessary, for instance if the first condition is false in the example here.

As a consequence, on non-Fedora distributions, an evaluation of the distribution version could be done on non numeric value, eg. `"6.7" -eq "29"`, making certbot-auto failing in this case.

This PR fixes that, by evaluating the version on RPM distributions only if we are on Fedora. Otherwise, version will be "0".
2019-04-04 10:46:46 -07:00
..
pieces Release 0.33.0 2019-04-03 13:08:02 -07:00
tests Protect certbot-auto against automated downgrades (#6448) 2018-11-19 14:28:59 -08:00
build.py Pin dependency versions when using tools/venv.sh (#4629) 2017-05-11 10:06:05 -07:00
certbot-auto.asc Release 0.33.0 2019-04-03 13:08:02 -07:00
Dockerfile.centos6 Update setuptools pinned in pipstrap (#6699) (#6704) 2019-01-25 11:53:29 -08:00
Dockerfile.jessie Revert "Configure jessie repos in LTS mode during Docker build (#6887)" (#6889) 2019-03-27 07:27:06 +01:00
Dockerfile.trusty Explicitly add six as a dependency in letsencrypt-auto-source dockerfiles (#5808) 2018-03-29 15:34:38 -07:00
Dockerfile.xenial Update outdated tests (#6515) 2019-01-16 13:17:37 -08:00
letsencrypt-auto Protect certbot-auto against non numerical version release in some RPM distributions (#6913) 2019-04-04 10:46:46 -07:00
letsencrypt-auto.sig Release 0.33.0 2019-04-03 13:08:02 -07:00
letsencrypt-auto.template Protect certbot-auto against non numerical version release in some RPM distributions (#6913) 2019-04-04 10:46:46 -07:00
rebuild_dependencies.py Reinsert fix for #5456 (#6904) 2019-04-02 16:49:38 -07:00
version.py Cleanup test farm tests and add test_sdists (#4089) 2017-01-30 19:37:23 -08:00