Don't put unimplemented tags into tagtable
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 14 Jul 2008 13:21:15 +0000 (16:21 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 14 Jul 2008 13:21:15 +0000 (16:21 +0300)
- no point in exposing unimplemnted (ours or somebody elses) tags to users

lib/gentagtbl.sh

index 2fd3abe..cb28c53 100755 (executable)
@@ -4,7 +4,7 @@ cat << EOF
 static const struct headerTagTableEntry_s rpmTagTable[] = {
 EOF
 
-${AWK} '/[\t ](RPMTAG_[A-Z0-9]*)[ \t]+([0-9]*)/ && !/internal/ {
+${AWK} '/[\t ](RPMTAG_[A-Z0-9]*)[ \t]+([0-9]*)/ && !/internal/ && !/unimplemented/ {
        tt = "NULL"
        ta = "ANY"
        ext = "0"