]> git.saurik.com Git - apt.git/blob - apt-pkg/tagfile-order.c
srv test: do 100 pulls twice and compare list
[apt.git] / apt-pkg / tagfile-order.c
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 "Multi-Arch",
21 "Status",
22 "Priority",
23 "Class", // dpkg nickname for Priority
24 "Essential",
25 "Installer-Menu-Item", // Used only by d-i
26 "Section",
27 "Source",
28 "Origin",
29 "Maintainer",
30 "Original-Maintainer", // unknown in dpkg order
31 "Bugs",
32 "Config-Version", // Internal of dpkg
33 "Conffiles",
34 "Triggers-Awaited",
35 "Triggers-Pending",
36 "Installed-Size",
37 "Provides",
38 "Pre-Depends",
39 "Depends",
40 "Recommends",
41 "Recommended", // dpkg nickname for Recommends
42 "Suggests",
43 "Optional", // dpkg nickname for Suggests
44 "Conflicts",
45 "Breaks",
46 "Replaces",
47 "Enhances",
48 "Filename",
49 "MSDOS-Filename", // Obsolete (used by dselect)
50 "Size",
51 "MD5sum",
52 "SHA1",
53 "SHA256",
54 "SHA512",
55 "Homepage",
56 "Description",
57 "Tag",
58 "Task",
59 0
60 };
61 static const char *iTFRewriteSourceOrder[] = {
62 "Package",
63 "Source", // dsc file, renamed to Package in Sources
64 "Format",
65 "Binary",
66 "Architecture",
67 "Version",
68 "Priority",
69 "Class", // dpkg nickname for Priority
70 "Section",
71 "Origin",
72 "Maintainer",
73 "Original-Maintainer", // unknown in dpkg order
74 "Uploaders",
75 "Dm-Upload-Allowed", // Obsolete (ignored by dak)
76 "Standards-Version",
77 "Build-Depends",
78 "Build-Depends-Arch",
79 "Build-Depends-Indep",
80 "Build-Conflicts",
81 "Build-Conflicts-Arch",
82 "Build-Conflicts-Indep",
83 "Testsuite",
84 "Homepage",
85 "Vcs-Browser",
86 "Vcs-Browse", // dak only (nickname?)
87 "Vcs-Arch",
88 "Vcs-Bzr",
89 "Vcs-Cvs",
90 "Vcs-Darcs",
91 "Vcs-Git",
92 "Vcs-Hg",
93 "Vcs-Mtn",
94 "Vcs-Svn",
95 "Directory",
96 "Package-List",
97 "Files",
98 "Checksums-Md5",
99 "Checksums-Sha1",
100 "Checksums-Sha256",
101 "Checksums-Sha512",
102 0
103 };
104
105 /* Two levels of initialization are used because gcc will set the symbol
106 size of an array to the length of the array, causing dynamic relinking
107 errors. Doing this makes the symbol size constant */
108 const char **TFRewritePackageOrder = iTFRewritePackageOrder;
109 const char **TFRewriteSourceOrder = iTFRewriteSourceOrder;