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:
Adrien Ferrand
2020-07-06 16:04:59 -07:00
committed by GitHub
parent 6bca930752
commit 183ccc64b1
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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"
+2 -1
View File
@@ -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.