Handle build modifications for all packages 55/38155/1
authorEd Bartosh <eduard.bartosh@intel.com>
Mon, 13 Apr 2015 18:00:19 +0000 (21:00 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Mon, 13 Apr 2015 18:03:17 +0000 (21:03 +0300)
So far build modifications were handled only for
aggregates and links. Adding the rest of the packages makes
meta information more complete.

Change-Id: Iaa1e58e0bebcc4850be7f5028ef42d9057626508
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
update_meta.sh

index 1ff0445..f569b30 100755 (executable)
@@ -54,9 +54,14 @@ function check_package() {
                        fi
                        ;;
                *)
+                       content=$(osc -A $API api /source/$PRJ/$pkg/_meta)
+                       if echo $content | grep -q '<build>' ; then
+                               mkdir -p $pkg
+                               echo $content >$pkg/_meta
+                               msg="$msg (updated)"
+                       fi
                        ;;
        esac
-
        echo $msg
 }