X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=rpm-find-spec-bcond;h=40ad15495ed80ba83e674d8bfbf32c90aa20daf3;hb=5748b03526859000e434bb654df56da342dfce4e;hp=a14e952bcf84a7b878cfd182c2ab4c8b3c43e56e;hpb=726fe4e92578c8d4432b4852a3e4bb0e32d516f1;p=packages%2Frpm.git diff --git a/rpm-find-spec-bcond b/rpm-find-spec-bcond index a14e952..40ad154 100644 --- a/rpm-find-spec-bcond +++ b/rpm-find-spec-bcond @@ -23,12 +23,12 @@ fi bconds=`awk -F"\n" 'BEGIN { chlog=0 } /^%changelog/ { chlog=1 } - /_with(out)?_[_a-z0-9]+/ && chlog == 0 { - match($0, /_with(out)?_[_a-z0-9]+/); + /_with(out)?_[_a-zA-Z0-9]+/ && chlog == 0 { + match($0, /_with(out)?_[_a-zA-Z0-9]+/); print substr($0, RSTART, RLENGTH) } /^%bcond_with/ && chlog == 0 { - match($0, /bcond_with(out)?[ ]+[_a-z0-9]+/); + match($0, /bcond_with(out)?[ ]+[_a-zA-Z0-9]+/); bcond = substr($0, RSTART +5 , RLENGTH -5); gsub(/ /,"_",bcond); print bcond @@ -57,7 +57,7 @@ for bcond in $bconds; do } } END { print val }" $SPEC`; - if [ x$isset = x1 ]; then + if [ x"$isset" = x"1" ]; then echo "WARN: $bcond defined in spec"; fi done