mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 00:32:12 -04:00
Fix injection
This commit is contained in:
parent
44b6d1e405
commit
a3e42c63bd
1 changed files with 3 additions and 3 deletions
|
|
@ -44,7 +44,7 @@ AUTHORITATIVE_CONSTRAINTS = {
|
|||
'python-augeas': '0.5.0',
|
||||
# Package enum34 needs to be explicitly limited to Python2.x, in order to avoid
|
||||
# certbot-auto failures on Python 3.6+ which enum34 doesn't support. See #5456.
|
||||
'enum34': '1.1.6 ; python_version < \'3.4\'',
|
||||
'enum34': '1.1.10 ; python_version < \'3.4\'',
|
||||
# Cryptography 2.9+ drops support for OpenSSL 1.0.1, but we still want to support it
|
||||
# for officially supported non-x86_64 ancient distributions like RHEL 6 or Debian 8.
|
||||
'cryptography': '2.8',
|
||||
|
|
@ -229,10 +229,10 @@ def _write_requirements(dest_file, requirements, conflicts):
|
|||
''')
|
||||
|
||||
for req in requirements:
|
||||
if req in AUTHORITATIVE_CONSTRAINTS:
|
||||
if req[0] in AUTHORITATIVE_CONSTRAINTS:
|
||||
# If requirement is in AUTHORITATIVE_CONSTRAINTS, take its value instead of the
|
||||
# computed one to get any environment descriptor that would have been added.
|
||||
req[1] = AUTHORITATIVE_CONSTRAINTS[req]
|
||||
req = (req[0], AUTHORITATIVE_CONSTRAINTS[req[0]])
|
||||
subprocess.check_call(['hashin', '{0}=={1}'.format(req[0], req[1]),
|
||||
'--requirements-file', dest_file])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue