X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/812f4169fee839b6cc6532a76276e0a957aeba77..c1b3d18934ce35f6a82b05207f53bf9b0cbfb961:/ftparchive/override.h diff --git a/ftparchive/override.h b/ftparchive/override.h index 5917b9c92..c5cacc2b4 100644 --- a/ftparchive/override.h +++ b/ftparchive/override.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: override.h,v 1.3 2001/05/29 03:49:53 jgg Exp $ +// $Id: override.h,v 1.4 2001/06/26 02:50:27 jgg Exp $ /* ###################################################################### Override @@ -12,9 +12,7 @@ #ifndef OVERRIDE_H #define OVERRIDE_H -#ifdef __GNUG__ -#pragma interface "override.h" -#endif + #include #include @@ -29,25 +27,25 @@ class Override struct Item { string Priority; - string Section; string OldMaint; string NewMaint; - - string SwapMaint(string Orig,bool &Failed); + + map FieldOverride; + string SwapMaint(string const &Orig,bool &Failed); + ~Item() {}; }; map Mapping; - inline Item *GetItem(string Package) + inline Item *GetItem(string const &Package) { - map::iterator I = Mapping.find(Package); - if (I == Mapping.end()) - return 0; - return &I->second; - }; + return GetItem(Package, ""); + } + Item *GetItem(string const &Package, string const &Architecture); - bool ReadOverride(string File,bool Source = false); + bool ReadOverride(string const &File,bool const &Source = false); + bool ReadExtraOverride(string const &File,bool const &Source = false); }; - + #endif