]> git.saurik.com Git - apt.git/blob - ftparchive/override.h
fix 'Source' to 'Package' rename in apt-ftparchive
[apt.git] / ftparchive / override.h
1 // -*- mode: cpp; mode: fold -*-
2 // Description /*{{{*/
3 // $Id: override.h,v 1.4 2001/06/26 02:50:27 jgg Exp $
4 /* ######################################################################
5
6 Override
7
8 Store the override file.
9
10 ##################################################################### */
11 /*}}}*/
12 #ifndef OVERRIDE_H
13 #define OVERRIDE_H
14
15
16
17 #include <map>
18 #include <string>
19
20 using std::string;
21 using std::map;
22
23 class Override
24 {
25 public:
26
27 struct Item
28 {
29 string Priority;
30 string OldMaint;
31 string NewMaint;
32
33 map<string,string> FieldOverride;
34 string SwapMaint(string const &Orig,bool &Failed);
35 ~Item() {};
36 };
37
38 map<string,Item> Mapping;
39
40 inline Item *GetItem(string const &Package)
41 {
42 return GetItem(Package, "");
43 }
44 Item *GetItem(string const &Package, string const &Architecture);
45
46 bool ReadOverride(string const &File,bool const &Source = false);
47 bool ReadExtraOverride(string const &File,bool const &Source = false);
48 };
49
50 #endif
51