append xz-utils to deps only when its needed

pull/1/head
Flavian 2020-02-26 08:57:01 +01:00
rodzic 1359ff2c1e
commit 095d7cade6
2 zmienionych plików z 8 dodań i 4 usunięć

Wyświetl plik

@ -57,14 +57,19 @@ def create_dockerfile(base_os: str,
dockerfile += "# Install dependencies\n"
dockerfile += "RUN apt-get update && apt-get install -y \ \n"
archivetype = blender_download_url.split(".")[-1]
archiveflags = "xjvf"
if archivetype == "xz":
archiveflags = "xvf"
deps.append("xz-utils")
for dependency, has_more in lookahead(deps):
is_multiline = " \ " if has_more else ""
dockerfile += "\u0009{}{}\n".format(dependency, is_multiline)
dockerfile += "\n"
archivetype = blender_download_url.split(".")[-1]
archiveflags = "xjvf" if archivetype == "bz2" else "xvf"
dockerfile += "# Download and install Blender\n"
dockerfile += "RUN wget {} \ \n".format(blender_download_url)
dockerfile += "\u0009&& tar -{} {} --strip-components=1 -C /bin \ \n".format(

Wyświetl plik

@ -11,7 +11,6 @@
"wget",
"libopenexr-dev",
"bzip2",
"xz-utils",
"build-essential",
"zlib1g-dev",
"libxmu-dev",