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