2 * Copyright (c) 2007, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
14 * Warning: you're free to append new entries, but insert/delete breaks
19 #ifdef KNOWNID_INITIALIZE
20 # define KNOWNID(a, b) b
21 static const char *initpool_data[] = {
23 # define KNOWNID(a, b) a
27 KNOWNID(ID_NULL, "<NULL>"),
28 KNOWNID(ID_EMPTY, ""),
29 KNOWNID(SOLVABLE_NAME, "solvable:name"),
30 KNOWNID(SOLVABLE_ARCH, "solvable:arch"),
31 KNOWNID(SOLVABLE_EVR, "solvable:evr"),
32 KNOWNID(SOLVABLE_VENDOR, "solvable:vendor"),
33 KNOWNID(SOLVABLE_PROVIDES, "solvable:provides"),
34 KNOWNID(SOLVABLE_OBSOLETES, "solvable:obsoletes"),
35 KNOWNID(SOLVABLE_CONFLICTS, "solvable:conflicts"),
36 KNOWNID(SOLVABLE_REQUIRES, "solvable:requires"),
37 KNOWNID(SOLVABLE_RECOMMENDS, "solvable:recommends"),
38 KNOWNID(SOLVABLE_SUGGESTS, "solvable:suggests"),
39 KNOWNID(SOLVABLE_SUPPLEMENTS, "solvable:supplements"),
40 KNOWNID(SOLVABLE_ENHANCES, "solvable:enhances"),
41 KNOWNID(RPM_RPMDBID, "rpm:dbid"),
42 /* normal requires before this, prereqs after this */
43 KNOWNID(SOLVABLE_PREREQMARKER, "solvable:prereqmarker"),
44 /* normal provides before this, generated file provides after this */
45 KNOWNID(SOLVABLE_FILEMARKER, "solvable:filemarker"),
46 KNOWNID(NAMESPACE_INSTALLED, "namespace:installed"),
47 KNOWNID(NAMESPACE_MODALIAS, "namespace:modalias"),
48 KNOWNID(NAMESPACE_SPLITPROVIDES, "namespace:splitprovides"),
49 KNOWNID(NAMESPACE_LANGUAGE, "namespace:language"),
50 KNOWNID(NAMESPACE_FILESYSTEM, "namespace:filesystem"),
51 KNOWNID(NAMESPACE_OTHERPROVIDERS, "namespace:otherproviders"),
52 KNOWNID(SYSTEM_SYSTEM, "system:system"),
53 KNOWNID(ARCH_SRC, "src"),
54 KNOWNID(ARCH_NOSRC, "nosrc"),
55 KNOWNID(ARCH_NOARCH, "noarch"),
56 KNOWNID(REPODATA_INFO, "repodata:info"),
57 KNOWNID(REPODATA_EXTERNAL, "repodata:external"),
58 KNOWNID(REPODATA_KEYS, "repodata:keys"),
59 KNOWNID(REPODATA_LOCATION, "repodata:location"),
60 KNOWNID(REPODATA_ADDEDFILEPROVIDES, "repodata:addedfileprovides"),
61 KNOWNID(REPODATA_RPMDBCOOKIE, "repodata:rpmdbcookie"),
63 /* The void type is usable to encode one-valued attributes, they have
64 no associated data. This is useful to encode values which many solvables
65 have in common, and whose overall set is relatively limited. A prime
66 example would be the media number. The actual value is encoded in the
67 SIZE member of the key structure. Be warned: careless use of this
68 leads to combinatoric explosion of number of schemas. */
69 KNOWNID(REPOKEY_TYPE_VOID, "repokey:type:void"),
70 KNOWNID(REPOKEY_TYPE_CONSTANT, "repokey:type:constant"),
71 KNOWNID(REPOKEY_TYPE_CONSTANTID, "repokey:type:constantid"),
72 KNOWNID(REPOKEY_TYPE_ID, "repokey:type:id"),
73 KNOWNID(REPOKEY_TYPE_NUM, "repokey:type:num"),
74 KNOWNID(REPOKEY_TYPE_U32, "repokey:type:num32"),
75 KNOWNID(REPOKEY_TYPE_DIR, "repokey:type:dir"),
76 KNOWNID(REPOKEY_TYPE_STR, "repokey:type:str"),
77 KNOWNID(REPOKEY_TYPE_IDARRAY, "repokey:type:idarray"),
78 KNOWNID(REPOKEY_TYPE_REL_IDARRAY, "repokey:type:relidarray"),
79 KNOWNID(REPOKEY_TYPE_DIRSTRARRAY, "repokey:type:dirstrarray"),
80 KNOWNID(REPOKEY_TYPE_DIRNUMNUMARRAY, "repokey:type:dirnumnumarray"),
81 KNOWNID(REPOKEY_TYPE_MD5, "repokey:type:md5"),
82 KNOWNID(REPOKEY_TYPE_SHA1, "repokey:type:sha1"),
83 KNOWNID(REPOKEY_TYPE_SHA256, "repokey:type:sha256"),
84 KNOWNID(REPOKEY_TYPE_COUNTED, "repokey:type:counted"),
86 KNOWNID(SOLVABLE_SUMMARY, "solvable:summary"),
87 KNOWNID(SOLVABLE_DESCRIPTION, "solvable:description"),
88 KNOWNID(SOLVABLE_DISTRIBUTION, "solvable:distribution"),
89 KNOWNID(SOLVABLE_AUTHORS, "solvable:authors"),
90 KNOWNID(SOLVABLE_PACKAGER, "solvable:packager"),
91 KNOWNID(SOLVABLE_GROUP, "solvable:group"),
92 KNOWNID(SOLVABLE_URL, "solvable:url"),
93 KNOWNID(SOLVABLE_KEYWORDS, "solvable:keywords"),
94 KNOWNID(SOLVABLE_LICENSE, "solvable:license"),
95 KNOWNID(SOLVABLE_BUILDTIME, "solvable:buildtime"),
96 KNOWNID(SOLVABLE_BUILDHOST, "solvable:buildhost"),
97 KNOWNID(SOLVABLE_EULA, "solvable:eula"),
98 KNOWNID(SOLVABLE_MESSAGEINS, "solvable:messageins"),
99 KNOWNID(SOLVABLE_MESSAGEDEL, "solvable:messagedel"),
100 KNOWNID(SOLVABLE_INSTALLSIZE, "solvable:installsize"),
101 KNOWNID(SOLVABLE_DISKUSAGE, "solvable:diskusage"),
102 KNOWNID(SOLVABLE_FILELIST, "solvable:filelist"),
103 KNOWNID(SOLVABLE_INSTALLTIME, "solvable:installtime"),
104 KNOWNID(SOLVABLE_MEDIADIR, "solvable:mediadir"),
105 KNOWNID(SOLVABLE_MEDIAFILE, "solvable:mediafile"),
106 KNOWNID(SOLVABLE_MEDIANR, "solvable:medianr"),
107 KNOWNID(SOLVABLE_DOWNLOADSIZE, "solvable:downloadsize"),
108 KNOWNID(SOLVABLE_SOURCEARCH, "solvable:sourcearch"),
109 KNOWNID(SOLVABLE_SOURCENAME, "solvable:sourcename"),
110 KNOWNID(SOLVABLE_SOURCEEVR, "solvable:sourceevr"),
111 KNOWNID(SOLVABLE_ISVISIBLE, "solvable:isvisible"),
112 KNOWNID(SOLVABLE_CHECKSUM, "solvable:checksum"),
113 /* pkgid: md5sum over header + payload */
114 KNOWNID(SOLVABLE_PKGID, "solvable:pkgid"),
115 /* hdrid: sha1sum over header only */
116 KNOWNID(SOLVABLE_HDRID, "solvable:hdrid"),
117 /* leadsigid: md5sum over lead + sigheader */
118 KNOWNID(SOLVABLE_LEADSIGID, "solvable:leadsigid"),
120 KNOWNID(SOLVABLE_PATCHCATEGORY, "solvable:patchcategory"),
121 KNOWNID(SOLVABLE_HEADEREND, "solvable:headerend"),
123 KNOWNID(SOLVABLE_CATEGORY, "solvable:category"),
124 KNOWNID(SOLVABLE_INCLUDES, "solvable:includes"),
125 KNOWNID(SOLVABLE_EXTENDS, "solvable:extends"),
126 KNOWNID(SOLVABLE_ICON, "solvable:icon"),
127 KNOWNID(SOLVABLE_ORDER, "solvable:order"),
129 KNOWNID(UPDATE_REBOOT, "update:reboot"), /* reboot suggested (kernel update) */
130 KNOWNID(UPDATE_RESTART, "update:restart"), /* restart suggested (update stack update) */
131 KNOWNID(UPDATE_RELOGIN, "update:relogin"), /* restart suggested (update stack update) */
133 KNOWNID(UPDATE_MESSAGE, "update:message"), /* restart suggested (update stack update) */
134 /* 'content' of patch, usually list of packages */
135 KNOWNID(UPDATE_COLLECTION, "update:collection"), /* "name evr arch" */
136 KNOWNID(UPDATE_COLLECTION_NAME, "update:collection:name"), /* name */
137 KNOWNID(UPDATE_COLLECTION_EVR, "update:collection:evr"), /* epoch:version-release */
138 KNOWNID(UPDATE_COLLECTION_ARCH, "update:collection:arch"), /* architecture */
139 KNOWNID(UPDATE_COLLECTION_FILENAME, "update:collection:filename"), /* filename (of rpm) */
140 KNOWNID(UPDATE_COLLECTION_FLAGS, "update:collection:flags"), /* reboot(1)/restart(2) suggested if this rpm gets updated */
142 /* external references for the update */
143 KNOWNID(UPDATE_REFERENCE_TYPE, "update:reference:type"), /* type, e.g. 'bugzilla' or 'cve' */
144 KNOWNID(UPDATE_REFERENCE_HREF, "update:reference:href"), /* href, e.g. 'http://bugzilla...' */
145 KNOWNID(UPDATE_REFERENCE_ID, "update:reference:id"), /* id, e.g. bug number */
146 KNOWNID(UPDATE_REFERENCE_TITLE, "update:reference:title"), /* title, e.g. "the bla forz scribs on fuggle" */
149 KNOWNID(PRODUCT_SHORTLABEL, "product:shortlabel"),
150 KNOWNID(PRODUCT_DISTPRODUCT, "product:distproduct"),
151 KNOWNID(PRODUCT_DISTVERSION, "product:distversion"),
152 KNOWNID(PRODUCT_TYPE, "product:type"),
153 KNOWNID(PRODUCT_RELNOTESURL, "product:relnotesurl"),
154 KNOWNID(PRODUCT_UPDATEURLS, "product:updateurls"),
155 KNOWNID(PRODUCT_EXTRAURLS, "product:extraurls"),
156 KNOWNID(PRODUCT_OPTIONALURLS, "product:optionalurls"),
157 KNOWNID(PRODUCT_FLAGS, "product:flags"),
158 KNOWNID(PRODUCT_FLAVOR, "product:flavor"),
159 KNOWNID(PRODUCT_REFERENCES, "product:references"),
160 KNOWNID(PRODUCT_UPDATEREPOKEY, "product:updaterepokey"),
163 KNOWNID(SUSETAGS_DATADIR, "susetags:datadir"),
165 /* timestamp then the repository was generated */
166 KNOWNID(REPOSITORY_TIMESTAMP, "repository:timestamp"),
167 /* hint when the metadata could be outdated
168 w/respect to generated timestamp */
169 KNOWNID(REPOSITORY_EXPIRE, "repository:expire"),
171 KNOWNID(DELTA_PACKAGE_NAME, "delta:pkgname"),
172 KNOWNID(DELTA_PACKAGE_EVR, "delta:pkgevr"),
173 KNOWNID(DELTA_PACKAGE_ARCH, "delta:pkgarch"),
174 KNOWNID(DELTA_LOCATION_DIR, "delta:locdir"),
175 KNOWNID(DELTA_LOCATION_NAME, "delta:locname"),
176 KNOWNID(DELTA_LOCATION_EVR, "delta:locevr"),
177 KNOWNID(DELTA_LOCATION_SUFFIX, "delta:locsuffix"),
178 KNOWNID(DELTA_DOWNLOADSIZE, "delta:downloadsize"),
179 KNOWNID(DELTA_CHECKSUM, "delta:checksum"),
180 KNOWNID(DELTA_BASE_EVR, "delta:baseevr"),
181 KNOWNID(DELTA_SEQ_NAME, "delta:seqname"),
182 KNOWNID(DELTA_SEQ_EVR, "delta:seqevr"),
183 KNOWNID(DELTA_SEQ_NUM, "delta:seqnum"),
185 KNOWNID(ID_NUM_INTERNAL, 0)
187 #ifdef KNOWNID_INITIALIZE