mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:05:31 +02:00
Some improvements (#8132)
Short PR to improve some things during snap builds: * cleanup snapcraft assets before a build, in order to avoid some weird errors when two builds are executed consecutively without cleanup * use python3 explicitly in `tools/simple_http_server.py` because on several recent distributions, `python` binary is not exposed anymore, only `python2` or `python3`.
This commit is contained in:
+1
-1
@@ -39,4 +39,4 @@ docker run \
|
||||
-w "/certbot" \
|
||||
-e "PIP_EXTRA_INDEX_URL=http://localhost:8080" \
|
||||
"adferrand/snapcraft:${DOCKER_ARCH}-stable" \
|
||||
snapcraft
|
||||
bash -c "snapcraft clean && snapcraft"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
"""A version of Python's SimpleHTTPServer that flushes its output."""
|
||||
import sys
|
||||
|
||||
@@ -8,6 +8,7 @@ except ImportError:
|
||||
from BaseHTTPServer import HTTPServer
|
||||
from SimpleHTTPServer import SimpleHTTPRequestHandler
|
||||
|
||||
|
||||
def serve_forever(port=0):
|
||||
"""Spins up an HTTP server on all interfaces and the given port.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user