]>
git.saurik.com Git - apt.git/blob - 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!
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. */
8 static const char *iTFRewritePackageOrder
[] = {
12 "Subarchitecture", // Used only by d-i
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
23 "Class", // dpkg nickname for Priority
25 "Installer-Menu-Item", // Used only by d-i
30 "Original-Maintainer", // unknown in dpkg order
32 "Config-Version", // Internal of dpkg
41 "Recommended", // dpkg nickname for Recommends
43 "Optional", // dpkg nickname for Suggests
49 "MSDOS-Filename", // Obsolete (used by dselect)
61 static const char *iTFRewriteSourceOrder
[] = {
63 "Source", // dsc file, renamed to Package in Sources
69 "Class", // dpkg nickname for Priority
73 "Original-Maintainer", // unknown in dpkg order
75 "Dm-Upload-Allowed", // Obsolete (ignored by dak)
79 "Build-Depends-Indep",
81 "Build-Conflicts-Arch",
82 "Build-Conflicts-Indep",
86 "Vcs-Browse", // dak only (nickname?)
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
;