]> xenbits.xensource.com Git - people/sstabellini/raisin.git/commitdiff
Fix for_each_component
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 7 Apr 2015 14:59:50 +0000 (14:59 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 7 Apr 2015 15:24:22 +0000 (15:24 +0000)
It should check on COMPONENT_UPSTREAM_REVISION rather than
COMPONENT_UPSTREAM_URL.

Also the test statement with eval is wrong and doesn't evaluate
correctly.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
common-functions.sh

index ff1c246a428b7e3310195d7abf489cdaac2fee39..7278c738b586284b804365e264c5e2bc5a1b08b1 100644 (file)
@@ -184,7 +184,7 @@ function for_each_component () {
     for component in `cat "$BASEDIR"/components/series`
     do
         capital=`echo $component | tr '[:lower:]' '[:upper:]'`
-        if [[ "`eval echo \$"$capital"_UPSTREAM_URL`" ]]
+        if eval [[ ! -z \$"$capital"_UPSTREAM_REVISION ]]
         then
             "$component"_"$1"
         fi