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.
 
 
 
 
 
 

52 lines
1.0 KiB

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