mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 08:03:19 +02:00
Dockerfiles pin versions using constraints file Pulling out strip_hashes and add --no-deps flag
17 lines
325 B
Python
Executable File
17 lines
325 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import os
|
|
import re
|
|
import sys
|
|
|
|
def main(args):
|
|
out_lines = []
|
|
for line in args:
|
|
search = re.search(r'^(\S*==\S*).*$', line)
|
|
if search:
|
|
out_lines.append(search.group(1))
|
|
return os.linesep.join(out_lines)
|
|
|
|
if __name__ == '__main__':
|
|
print(main(sys.argv[1:]))
|