X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/64177f1732fad72e76e8d2e8c576c635af2bbc4f..f8477782df203e1998a8704e71a1a3cc699e9e3a:/ftparchive/override.h diff --git a/ftparchive/override.h b/ftparchive/override.h index 2d6a4e27c..e64641776 100644 --- a/ftparchive/override.h +++ b/ftparchive/override.h @@ -34,17 +34,16 @@ class Override map FieldOverride; string SwapMaint(string Orig,bool &Failed); + ~Item() {}; }; map Mapping; inline Item *GetItem(string Package) { - map::iterator I = Mapping.find(Package); - if (I == Mapping.end()) - return 0; - return &I->second; - }; + return GetItem(Package, ""); + } + Item *GetItem(string Package, string Architecture); bool ReadOverride(string File,bool Source = false); bool ReadExtraOverride(string File,bool Source = false);