Improve Jinja2 template logic a bit

This commit is contained in:
Robin Schneider 2019-12-31 15:54:27 +01:00
parent 1698b43f9b
commit 146525db91
No known key found for this signature in database
GPG Key ID: A81E8006DC95EFE6
1 changed files with 1 additions and 2 deletions

View File

@ -86,8 +86,7 @@ RUN rustup set profile minimal
{% if "alpine" in target_file %} {% if "alpine" in target_file %}
ENV USER "root" ENV USER "root"
{% endif %} {% elif "aarch64" in target_file or "armv" in target_file %}
{% if "aarch64" in target_file or "armv" in target_file %}
# Install required build libs for {{ package_arch_name }} architecture. # Install required build libs for {{ package_arch_name }} architecture.
RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \
/etc/apt/sources.list.d/deb-src.list \ /etc/apt/sources.list.d/deb-src.list \