You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
997 B

  1. // -*- mode: cpp; mode: fold -*-
  2. // Description /*{{{*/
  3. /* ######################################################################
  4. Override
  5. Store the override file.
  6. ##################################################################### */
  7. /*}}}*/
  8. #ifndef OVERRIDE_H
  9. #define OVERRIDE_H
  10. #include <map>
  11. #include <string>
  12. using std::string;
  13. using std::map;
  14. class Override
  15. {
  16. public:
  17. struct Item
  18. {
  19. string Priority;
  20. string OldMaint;
  21. string NewMaint;
  22. map<string,string> FieldOverride;
  23. string SwapMaint(string const &Orig,bool &Failed);
  24. ~Item() {};
  25. };
  26. map<string,Item> Mapping;
  27. inline Item *GetItem(string const &Package)
  28. {
  29. return GetItem(Package, "");
  30. }
  31. Item *GetItem(string const &Package, string const &Architecture);
  32. bool ReadOverride(string const &File,bool const &Source = false);
  33. bool ReadExtraOverride(string const &File,bool const &Source = false);
  34. };
  35. #endif