Skip to contentSkip to conversation

Print out components which are skipped because unsupported on a given platform

PATCH New Stefano Stabellini 1 participant 1 message Oct 14, 2015 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Print out components which are skipped because unsupported on a given platform

---
 lib/common-functions.sh |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
lib/common-functions.sh +6 -1
index 03642ae..27f6434 100644
@@ -301,11 +301,16 @@ function for_each_component () {
                 break
             fi
         done
-        if ! $found || "$component"_skip
+        if ! $found
         then
             verbose_echo "$component" is disabled
             continue
         fi
+        if "$component"_skip
+        then
+            error_echo "$component" will be skipped on your platform
+            continue
+        fi
 
         echo "$PREPEND" calling "$component"_"$1"
         if [[ $VERBOSE -eq 0 ]]
Signature · 1 line
1.7.9.5