Skip to content

Commit dfc451e

Browse files
committed
fix logic failure
1 parent bda2b15 commit dfc451e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

rever/docker.xsh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,11 @@ def collate_deps(apt=None, conda=None, conda_channels=None,
118118
pip=None, pip_requirements=None):
119119
"""Constructs a string that installs all known dependencies."""
120120
if conda or $DOCKER_CONDA_DEPS:
121-
if not apt:
122-
apt = set()
123-
apt |= {"wget", "bzip2", "ca-certificates", "curl", "git"}
121+
if not apt and not $DOCKER_APT_DEPS:
122+
apt = []
123+
elif not apt:
124+
apt = list($DOCKER_APT_DEPS)
125+
apt += ["wget", "bzip2", "ca-certificates", "curl", "git"]
124126
s = ''
125127
s += apt_deps(apt)
126128
s += conda_deps(conda, conda_channels)

0 commit comments

Comments
 (0)