00001
00002 #include "system.h"
00003 #include <rpmlib.h>
00004
00005
00006 static const struct headerTagTableEntry_s rpmTagTbl[] = {
00007 { "RPMTAG_HEADERIMAGE", HEADER_IMAGE, RPM_NULL_TYPE },
00008 { "RPMTAG_HEADERSIGNATURES", HEADER_SIGNATURES, RPM_NULL_TYPE },
00009 { "RPMTAG_HEADERIMMUTABLE", HEADER_IMMUTABLE, RPM_NULL_TYPE },
00010 { "RPMTAG_HEADERREGIONS", HEADER_REGIONS, RPM_NULL_TYPE },
00011 { "RPMTAG_HEADERI18NTABLE", HEADER_I18NTABLE, RPM_NULL_TYPE },
00012 { "RPMTAG_SIGSIZE", RPMTAG_SIG_BASE+1, RPM_INT32_TYPE },
00013 { "RPMTAG_SIGPGP", RPMTAG_SIG_BASE+3, RPM_BIN_TYPE },
00014 { "RPMTAG_SIGMD5", RPMTAG_SIG_BASE+5, RPM_BIN_TYPE },
00015 { "RPMTAG_PKGID", RPMTAG_SIGMD5, RPM_BIN_TYPE },
00016 { "RPMTAG_SIGGPG", RPMTAG_SIG_BASE+6, RPM_BIN_TYPE },
00017 { "RPMTAG_PUBKEYS", RPMTAG_SIG_BASE+10, RPM_STRING_ARRAY_TYPE },
00018 { "RPMTAG_DSAHEADER", RPMTAG_SIG_BASE+11, RPM_BIN_TYPE },
00019 { "RPMTAG_RSAHEADER", RPMTAG_SIG_BASE+12, RPM_BIN_TYPE },
00020 { "RPMTAG_SHA1HEADER", RPMTAG_SIG_BASE+13, RPM_STRING_TYPE },
00021 { "RPMTAG_HDRID", RPMTAG_SHA1HEADER, RPM_STRING_TYPE },
00022 { "RPMTAG_NAME", 1000, RPM_STRING_TYPE },
00023 { "RPMTAG_N", RPMTAG_NAME, RPM_STRING_TYPE },
00024 { "RPMTAG_VERSION", 1001, RPM_STRING_TYPE },
00025 { "RPMTAG_V", RPMTAG_VERSION, RPM_STRING_TYPE },
00026 { "RPMTAG_RELEASE", 1002, RPM_STRING_TYPE },
00027 { "RPMTAG_R", RPMTAG_RELEASE, RPM_STRING_TYPE },
00028 { "RPMTAG_EPOCH", 1003, RPM_INT32_TYPE },
00029 { "RPMTAG_E", RPMTAG_EPOCH, RPM_INT32_TYPE },
00030 { "RPMTAG_SERIAL", RPMTAG_EPOCH, RPM_INT32_TYPE },
00031 { "RPMTAG_SUMMARY", 1004, RPM_I18NSTRING_TYPE },
00032 { "RPMTAG_DESCRIPTION", 1005, RPM_I18NSTRING_TYPE },
00033 { "RPMTAG_BUILDTIME", 1006, RPM_INT32_TYPE },
00034 { "RPMTAG_BUILDHOST", 1007, RPM_STRING_TYPE },
00035 { "RPMTAG_INSTALLTIME", 1008, RPM_INT32_TYPE },
00036 { "RPMTAG_SIZE", 1009, RPM_INT32_TYPE },
00037 { "RPMTAG_DISTRIBUTION", 1010, RPM_STRING_TYPE },
00038 { "RPMTAG_VENDOR", 1011, RPM_STRING_TYPE },
00039 { "RPMTAG_GIF", 1012, RPM_BIN_TYPE },
00040 { "RPMTAG_XPM", 1013, RPM_BIN_TYPE },
00041 { "RPMTAG_LICENSE", 1014, RPM_STRING_TYPE },
00042 { "RPMTAG_COPYRIGHT", RPMTAG_LICENSE, RPM_STRING_TYPE },
00043 { "RPMTAG_PACKAGER", 1015, RPM_STRING_TYPE },
00044 { "RPMTAG_GROUP", 1016, RPM_I18NSTRING_TYPE },
00045 { "RPMTAG_SOURCE", 1018, RPM_STRING_ARRAY_TYPE },
00046 { "RPMTAG_PATCH", 1019, RPM_STRING_ARRAY_TYPE },
00047 { "RPMTAG_URL", 1020, RPM_STRING_TYPE },
00048 { "RPMTAG_OS", 1021, RPM_STRING_TYPE },
00049 { "RPMTAG_ARCH", 1022, RPM_STRING_TYPE },
00050 { "RPMTAG_PREIN", 1023, RPM_STRING_TYPE },
00051 { "RPMTAG_POSTIN", 1024, RPM_STRING_TYPE },
00052 { "RPMTAG_PREUN", 1025, RPM_STRING_TYPE },
00053 { "RPMTAG_POSTUN", 1026, RPM_STRING_TYPE },
00054 { "RPMTAG_OLDFILENAMES", 1027, RPM_STRING_ARRAY_TYPE },
00055 { "RPMTAG_FILESIZES", 1028, RPM_INT32_TYPE },
00056 { "RPMTAG_FILESTATES", 1029, RPM_CHAR_TYPE },
00057 { "RPMTAG_FILEMODES", 1030, RPM_INT16_TYPE },
00058 { "RPMTAG_FILERDEVS", 1033, RPM_INT16_TYPE },
00059 { "RPMTAG_FILEMTIMES", 1034, RPM_INT32_TYPE },
00060 { "RPMTAG_FILEMD5S", 1035, RPM_STRING_ARRAY_TYPE },
00061 { "RPMTAG_FILELINKTOS", 1036, RPM_STRING_ARRAY_TYPE },
00062 { "RPMTAG_FILEFLAGS", 1037, RPM_INT32_TYPE },
00063 { "RPMTAG_FILEUSERNAME", 1039, RPM_STRING_ARRAY_TYPE },
00064 { "RPMTAG_FILEGROUPNAME", 1040, RPM_STRING_ARRAY_TYPE },
00065 { "RPMTAG_ICON", 1043, RPM_NULL_TYPE },
00066 { "RPMTAG_SOURCERPM", 1044, RPM_STRING_TYPE },
00067 { "RPMTAG_FILEVERIFYFLAGS", 1045, RPM_INT32_TYPE },
00068 { "RPMTAG_ARCHIVESIZE", 1046, RPM_INT32_TYPE },
00069 { "RPMTAG_PROVIDENAME", 1047, RPM_STRING_ARRAY_TYPE },
00070 { "RPMTAG_PROVIDES", RPMTAG_PROVIDENAME, RPM_STRING_ARRAY_TYPE },
00071 { "RPMTAG_P", RPMTAG_PROVIDENAME, RPM_STRING_ARRAY_TYPE },
00072 { "RPMTAG_REQUIREFLAGS", 1048, RPM_INT32_TYPE },
00073 { "RPMTAG_REQUIRENAME", 1049, RPM_STRING_ARRAY_TYPE },
00074 { "RPMTAG_REQUIRES", RPMTAG_REQUIRENAME, RPM_STRING_ARRAY_TYPE },
00075 { "RPMTAG_D", RPMTAG_REQUIRENAME, RPM_STRING_ARRAY_TYPE },
00076 { "RPMTAG_REQUIREVERSION", 1050, RPM_STRING_ARRAY_TYPE },
00077 { "RPMTAG_CONFLICTFLAGS", 1053, RPM_INT32_TYPE },
00078 { "RPMTAG_CONFLICTNAME", 1054, RPM_STRING_ARRAY_TYPE },
00079 { "RPMTAG_CONFLICTS", RPMTAG_CONFLICTNAME, RPM_STRING_ARRAY_TYPE },
00080 { "RPMTAG_C", RPMTAG_CONFLICTNAME, RPM_STRING_ARRAY_TYPE },
00081 { "RPMTAG_CONFLICTVERSION", 1055, RPM_STRING_ARRAY_TYPE },
00082 { "RPMTAG_EXCLUDEARCH", 1059, RPM_NULL_TYPE },
00083 { "RPMTAG_EXCLUDEOS", 1060, RPM_NULL_TYPE },
00084 { "RPMTAG_EXCLUSIVEARCH", 1061, RPM_NULL_TYPE },
00085 { "RPMTAG_EXCLUSIVEOS", 1062, RPM_NULL_TYPE },
00086 { "RPMTAG_RPMVERSION", 1064, RPM_STRING_TYPE },
00087 { "RPMTAG_TRIGGERSCRIPTS", 1065, RPM_STRING_ARRAY_TYPE },
00088 { "RPMTAG_TRIGGERNAME", 1066, RPM_STRING_ARRAY_TYPE },
00089 { "RPMTAG_TRIGGERVERSION", 1067, RPM_STRING_ARRAY_TYPE },
00090 { "RPMTAG_TRIGGERFLAGS", 1068, RPM_INT32_TYPE },
00091 { "RPMTAG_TRIGGERINDEX", 1069, RPM_INT32_TYPE },
00092 { "RPMTAG_VERIFYSCRIPT", 1079, RPM_STRING_TYPE },
00093 { "RPMTAG_CHANGELOGTIME", 1080, RPM_INT32_TYPE },
00094 { "RPMTAG_CHANGELOGNAME", 1081, RPM_STRING_ARRAY_TYPE },
00095 { "RPMTAG_CHANGELOGTEXT", 1082, RPM_STRING_ARRAY_TYPE },
00096 { "RPMTAG_PREINPROG", 1085, RPM_STRING_TYPE },
00097 { "RPMTAG_POSTINPROG", 1086, RPM_STRING_TYPE },
00098 { "RPMTAG_PREUNPROG", 1087, RPM_STRING_TYPE },
00099 { "RPMTAG_POSTUNPROG", 1088, RPM_STRING_TYPE },
00100 { "RPMTAG_BUILDARCHS", 1089, RPM_NULL_TYPE },
00101 { "RPMTAG_OBSOLETENAME", 1090, RPM_STRING_ARRAY_TYPE },
00102 { "RPMTAG_OBSOLETES", RPMTAG_OBSOLETENAME, RPM_STRING_ARRAY_TYPE },
00103 { "RPMTAG_O", RPMTAG_OBSOLETENAME, RPM_STRING_ARRAY_TYPE },
00104 { "RPMTAG_VERIFYSCRIPTPROG", 1091, RPM_STRING_TYPE },
00105 { "RPMTAG_TRIGGERSCRIPTPROG", 1092, RPM_STRING_TYPE },
00106 { "RPMTAG_COOKIE", 1094, RPM_STRING_TYPE },
00107 { "RPMTAG_FILEDEVICES", 1095, RPM_INT32_TYPE },
00108 { "RPMTAG_FILEINODES", 1096, RPM_INT32_TYPE },
00109 { "RPMTAG_FILELANGS", 1097, RPM_STRING_ARRAY_TYPE },
00110 { "RPMTAG_PREFIXES", 1098, RPM_STRING_ARRAY_TYPE },
00111 { "RPMTAG_INSTPREFIXES", 1099, RPM_STRING_ARRAY_TYPE },
00112 { "RPMTAG_SOURCEPACKAGE", 1106, RPM_INT32_TYPE },
00113 { "RPMTAG_PROVIDEFLAGS", 1112, RPM_INT32_TYPE },
00114 { "RPMTAG_PROVIDEVERSION", 1113, RPM_STRING_ARRAY_TYPE },
00115 { "RPMTAG_OBSOLETEFLAGS", 1114, RPM_INT32_TYPE },
00116 { "RPMTAG_OBSOLETEVERSION", 1115, RPM_STRING_ARRAY_TYPE },
00117 { "RPMTAG_DIRINDEXES", 1116, RPM_INT32_TYPE },
00118 { "RPMTAG_BASENAMES", 1117, RPM_STRING_ARRAY_TYPE },
00119 { "RPMTAG_DIRNAMES", 1118, RPM_STRING_ARRAY_TYPE },
00120 { "RPMTAG_OPTFLAGS", 1122, RPM_STRING_TYPE },
00121 { "RPMTAG_DISTURL", 1123, RPM_STRING_TYPE },
00122 { "RPMTAG_PAYLOADFORMAT", 1124, RPM_STRING_TYPE },
00123 { "RPMTAG_PAYLOADCOMPRESSOR", 1125, RPM_STRING_TYPE },
00124 { "RPMTAG_PAYLOADFLAGS", 1126, RPM_STRING_TYPE },
00125 { "RPMTAG_INSTALLCOLOR", 1127, RPM_INT32_TYPE },
00126 { "RPMTAG_INSTALLTID", 1128, RPM_INT32_TYPE },
00127 { "RPMTAG_REMOVETID", 1129, RPM_INT32_TYPE },
00128 { "RPMTAG_RHNPLATFORM", 1131, RPM_STRING_TYPE },
00129 { "RPMTAG_PLATFORM", 1132, RPM_STRING_TYPE },
00130 { "RPMTAG_PATCHESNAME", 1133, RPM_NULL_TYPE },
00131 { "RPMTAG_PATCHESFLAGS", 1134, RPM_NULL_TYPE },
00132 { "RPMTAG_PATCHESVERSION", 1135, RPM_NULL_TYPE },
00133 { "RPMTAG_CACHECTIME", 1136, RPM_INT32_TYPE },
00134 { "RPMTAG_CACHEPKGPATH", 1137, RPM_STRING_TYPE },
00135 { "RPMTAG_CACHEPKGSIZE", 1138, RPM_INT32_TYPE },
00136 { "RPMTAG_CACHEPKGMTIME", 1139, RPM_INT32_TYPE },
00137 { "RPMTAG_FILECOLORS", 1140, RPM_INT32_TYPE },
00138 { "RPMTAG_FILECLASS", 1141, RPM_INT32_TYPE },
00139 { "RPMTAG_CLASSDICT", 1142, RPM_STRING_ARRAY_TYPE },
00140 { "RPMTAG_FILEDEPENDSX", 1143, RPM_INT32_TYPE },
00141 { "RPMTAG_FILEDEPENDSN", 1144, RPM_INT32_TYPE },
00142 { "RPMTAG_DEPENDSDICT", 1145, RPM_INT32_TYPE },
00143 { "RPMTAG_SOURCEPKGID", 1146, RPM_BIN_TYPE },
00144 { "RPMTAG_FILECONTEXTS", 1147, RPM_STRING_ARRAY_TYPE },
00145 { "RPMTAG_FSCONTEXTS", 1148, RPM_STRING_ARRAY_TYPE },
00146 { "RPMTAG_RECONTEXTS", 1149, RPM_STRING_ARRAY_TYPE },
00147 { "RPMTAG_POLICIES", 1150, RPM_STRING_ARRAY_TYPE },
00148 { "RPMTAG_PRETRANS", 1151, RPM_STRING_TYPE },
00149 { "RPMTAG_POSTTRANS", 1152, RPM_STRING_TYPE },
00150 { "RPMTAG_PRETRANSPROG", 1153, RPM_STRING_TYPE },
00151 { "RPMTAG_POSTTRANSPROG", 1154, RPM_STRING_TYPE },
00152 { "RPMTAG_DISTTAG", 1155, RPM_STRING_TYPE },
00153 { "RPMTAG_SUGGESTSNAME", 1156, RPM_STRING_ARRAY_TYPE },
00154 { "RPMTAG_SUGGESTSVERSION", 1157, RPM_STRING_ARRAY_TYPE },
00155 { "RPMTAG_SUGGESTSFLAGS", 1158, RPM_INT32_TYPE },
00156 { "RPMTAG_ENHANCESNAME", 1159, RPM_STRING_ARRAY_TYPE },
00157 { "RPMTAG_ENHANCESVERSION", 1160, RPM_STRING_ARRAY_TYPE },
00158 { "RPMTAG_ENHANCESFLAGS", 1161, RPM_INT32_TYPE },
00159 { "RPMTAG_PRIORITY", 1162, RPM_INT32_TYPE },
00160 { "RPMTAG_CVSID", 1163, RPM_STRING_TYPE },
00161 { "RPMTAG_SVNID", RPMTAG_CVSID, RPM_STRING_TYPE },
00162 { NULL, 0, 0 }
00163 };
00164
00165
00166 const struct headerTagTableEntry_s * rpmTagTable = rpmTagTbl;
00167
00168
00169 const int rpmTagTableSize = sizeof(rpmTagTbl) / sizeof(rpmTagTbl[0]) - 1;
00170