From 851b6a097165af4d51c0db01b5e05256e5006896 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:00:48 +0200 Subject: Adding upstream version 2.6.1. Signed-off-by: Daniel Baumann --- ftparchive/override.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 ftparchive/override.h (limited to 'ftparchive/override.h') diff --git a/ftparchive/override.h b/ftparchive/override.h new file mode 100644 index 0000000..af62a04 --- /dev/null +++ b/ftparchive/override.h @@ -0,0 +1,48 @@ +// -*- mode: cpp; mode: fold -*- +// Description /*{{{*/ +/* ###################################################################### + + Override + + Store the override file. + + ##################################################################### */ + /*}}}*/ +#ifndef OVERRIDE_H +#define OVERRIDE_H + +#include +#include + +using std::string; +using std::map; + +class Override +{ + public: + + struct Item + { + string Priority; + string OldMaint; + string NewMaint; + + map FieldOverride; + string SwapMaint(string const &Orig,bool &Failed); + ~Item() {}; + }; + + map Mapping; + + inline Item *GetItem(string const &Package) + { + return GetItem(Package, ""); + } + Item *GetItem(string const &Package, string const &Architecture); + + bool ReadOverride(string const &File,bool const &Source = false); + bool ReadExtraOverride(string const &File,bool const &Source = false); +}; + +#endif + -- cgit v1.2.3