From: José Bollo Date: Mon, 30 Mar 2015 14:44:41 +0000 (+0200) Subject: Improvement of vconftool/buxton_ensure_group X-Git-Tag: accepted/tizen/common/20150331.084952^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F32%2F37532%2F1;p=platform%2Fcore%2Fappfw%2Fvconf-buxton.git Improvement of vconftool/buxton_ensure_group This will now allow users that don't has right to write the label but that has the right to read it to be able to run the script when the label of the group is already set to the expected value. May solve the bug TT-51. Change-Id: I867e787f7dc0dfea6c8838be71c3cb41d0505cf8 Signed-off-by: José Bollo --- diff --git a/src/vconf-buxton-tool.sh b/src/vconf-buxton-tool.sh index b864842..de96da6 100755 --- a/src/vconf-buxton-tool.sh +++ b/src/vconf-buxton-tool.sh @@ -160,7 +160,12 @@ buxton_ensure_group() { else buxton_make_group "$layer" "$group" || return fi - [[ -z "$label" ]] || buxton_set_label "$layer" "$group" "$label" + if [[ -n "$label" ]] && [[ "$label" != "$(buxton_get_label "$layer" "$group")" ]] + then + buxton_set_label "$layer" "$group" "$label" + else + info "group $group in layer $layer already has label $label" + fi } buxton_ensure_ready() {