From 570e7e64902723d2220bad3182d1aba9f8b3a3ad Mon Sep 17 00:00:00 2001
From: Alejandro Lopez Gestoso <alopez@iri.upc.edu>
Date: Fri, 23 Sep 2022 10:22:20 +0200
Subject: [PATCH] Fixed bug getting dependencies when the line starts without
 spaces

---
 packaging-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packaging-ci.yml b/packaging-ci.yml
index 8828d70..5a7eb80 100644
--- a/packaging-ci.yml
+++ b/packaging-ci.yml
@@ -12,7 +12,7 @@
       ##Install dependencies
       #- apt -y install iri-dep1-dev iri-dep2-dev
       # Read dependencies from CMakeLists.txt
-      - DEP=( $(grep -P '[^#]\s+SET\(CPACK_DEBIAN_PACKAGE_DEPENDS\s+"' CMakeLists.txt) ) || echo " Package iri-$PACKAGE_NAME-dev without dependencies"
+      - DEP=( $(grep -P '\s+SET\(CPACK_DEBIAN_PACKAGE_DEPENDS\s+"' CMakeLists.txt | grep -v '#') ) || echo " Package iri-$PACKAGE_NAME-dev without dependencies"
       - declare -a DEP
       - |+
         for ((i=1;i<${#DEP[@]};i+=3))
-- 
GitLab