From: Stephane Desneux Date: Mon, 1 Dec 2014 17:59:52 +0000 (+0100) Subject: update_meta: only include non empty _meta files X-Git-Tag: submit/trunk/20170904.073139~192 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0a64fc2fea51f72aea629f9950e3ca13670be12;p=scm%2Fmeta%2Fobs.git update_meta: only include non empty _meta files Change-Id: I1fdf44545864512564a411f36d57a4556ae6f5cb Signed-off-by: Stephane Desneux --- diff --git a/update_meta.sh b/update_meta.sh index 6bfcb68..1ff0445 100755 --- a/update_meta.sh +++ b/update_meta.sh @@ -46,7 +46,12 @@ function check_package() { mkdir -p $pkg osc -A $API api /source/$PRJ/$pkg/_link >$pkg/_link osc -A $API api /source/$PRJ/$pkg/_meta >$pkg/_meta - msg="$msg (updated)" + if grep '/dev/null; then + msg="$msg (updated, with meta)" + else + rm $pkg/_meta + msg="$msg (updated)" + fi ;; *) ;;