From 600c7b88713cf041f25feb2ea8fbb63e0c60e0d4 Mon Sep 17 00:00:00 2001
From: Amir MOHAMMADI <amir.mohammadi@idiap.ch>
Date: Tue, 30 Nov 2021 15:21:45 +0100
Subject: [PATCH] Fix docker tag checking; fixes #92

---
 bob/devtools/scripts/build.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bob/devtools/scripts/build.py b/bob/devtools/scripts/build.py
index 47226be8..cc5f08a3 100644
--- a/bob/devtools/scripts/build.py
+++ b/bob/devtools/scripts/build.py
@@ -250,9 +250,9 @@ def build(
 
         # If in docker, install the packages inside the yum_requirements.txt file if it exists
         yum_requirements_file = os.path.join(d, "yum_requirements.txt")
-        if "docker" in os.environ.get("CI_RUNNER_TAGS", "") and os.path.exists(
-            yum_requirements_file
-        ):
+        if "docker" in os.environ.get("CI_RUNNER_TAGS", "").split(
+            ", "
+        ) and os.path.exists(yum_requirements_file):
             logger.info(
                 "Installing packages from yum_requirements.txt file using yum"
             )
-- 
GitLab