apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

tagfile-order.c
Go to the documentation of this file.
1 /* In this file is the order defined in which e.g. apt-ftparchive will write stanzas in.
2  Other commands might or might not use this. 'apt-cache show' e.g. does NOT!
3 
4  The order we chose here is inspired by both dpkg and dak.
5  The testcase test/integration/test-apt-tagfile-fields-order intends to ensure that
6  this file isn't lacking (too far) behind dpkg over time. */
7 
8 static const char *iTFRewritePackageOrder[] = {
9  "Package",
10  "Package-Type",
11  "Architecture",
12  "Subarchitecture", // Used only by d-i
13  "Version",
14  "Revision", // Obsolete (warning in dpkg)
15  "Package-Revision", // Obsolete (warning in dpkg)
16  "Package_Revision", // Obsolete (warning in dpkg)
17  "Kernel-Version", // Used only by d-i
18  "Built-Using",
19  "Built-For-Profiles",
20  "Auto-Built-Package",
21  "Multi-Arch",
22  "Status",
23  "Priority",
24  "Class", // dpkg nickname for Priority
25  "Build-Essential",
26  "Protected",
27  "Essential",
28  "Installer-Menu-Item", // Used only by d-i
29  "Section",
30  "Source",
31  "Origin",
32  "Maintainer",
33  "Original-Maintainer", // unknown in dpkg order
34  "Bugs",
35  "Config-Version", // Internal of dpkg
36  "Conffiles",
37  "Triggers-Awaited",
38  "Triggers-Pending",
39  "Installed-Size",
40  "Provides",
41  "Pre-Depends",
42  "Depends",
43  "Recommends",
44  "Recommended", // dpkg nickname for Recommends
45  "Suggests",
46  "Optional", // dpkg nickname for Suggests
47  "Conflicts",
48  "Breaks",
49  "Replaces",
50  "Enhances",
51  "Filename",
52  "MSDOS-Filename", // Obsolete (used by dselect)
53  "Size",
54  "MD5sum",
55  "SHA1",
56  "SHA256",
57  "SHA512",
58  "Homepage",
59  "Description",
60  "Tag",
61  "Task",
62  0,
63 };
64 static const char *iTFRewriteSourceOrder[] = {
65  "Package",
66  "Source", // dsc file, renamed to Package in Sources
67  "Format",
68  "Binary",
69  "Architecture",
70  "Version",
71  "Priority",
72  "Class", // dpkg nickname for Priority
73  "Section",
74  "Origin",
75  "Maintainer",
76  "Original-Maintainer", // unknown in dpkg order
77  "Uploaders",
78  "Dm-Upload-Allowed", // Obsolete (ignored by dak)
79  "Standards-Version",
80  "Build-Depends",
81  "Build-Depends-Arch",
82  "Build-Depends-Indep",
83  "Build-Conflicts",
84  "Build-Conflicts-Arch",
85  "Build-Conflicts-Indep",
86  "Testsuite",
87  "Testsuite-Triggers",
88  "Homepage",
89  "Description",
90  "Vcs-Browser",
91  "Vcs-Browse", // dak only (nickname?)
92  "Vcs-Arch",
93  "Vcs-Bzr",
94  "Vcs-Cvs",
95  "Vcs-Darcs",
96  "Vcs-Git",
97  "Vcs-Hg",
98  "Vcs-Mtn",
99  "Vcs-Svn",
100  "Directory",
101  "Package-List",
102  "Files",
103  "Checksums-Md5",
104  "Checksums-Sha1",
105  "Checksums-Sha256",
106  "Checksums-Sha512",
107  0,
108 };
109 
110 /* Two levels of initialization are used because gcc will set the symbol
111  size of an array to the length of the array, causing dynamic relinking
112  errors. Doing this makes the symbol size constant */
const char ** TFRewritePackageOrder
const char ** TFRewriteSourceOrder
static const char * iTFRewritePackageOrder[]
Definition: tagfile-order.c:8
static const char * iTFRewriteSourceOrder[]
Definition: tagfile-order.c:64