]> git.saurik.com Git - apt-legacy.git/blame - ftparchive/override.h
Checkpointing APT notes and fixed a minor error issue in new memory map code.
[apt-legacy.git] / ftparchive / override.h
CommitLineData
da6ee469
JF
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
00ec24d0 15
da6ee469
JF
16
17#include <map>
18#include <string>
19
20using std::string;
21using std::map;
22
23class 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 Orig,bool &Failed);
35 ~Item() {};
36 };
37
38 map<string,Item> Mapping;
39
40 inline Item *GetItem(string Package)
41 {
42 return GetItem(Package, "");
43 }
44 Item *GetItem(string Package, string Architecture);
45
46 bool ReadOverride(string File,bool Source = false);
47 bool ReadExtraOverride(string File,bool Source = false);
48};
49
50#endif
51