summaryrefslogtreecommitdiff
path: root/ftparchive/override.h
diff options
context:
space:
mode:
Diffstat (limited to 'ftparchive/override.h')
-rw-r--r--ftparchive/override.h9
1 files changed, 4 insertions, 5 deletions
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<string,string> FieldOverride;
string SwapMaint(string Orig,bool &Failed);
+ ~Item() {};
};
map<string,Item> Mapping;
inline Item *GetItem(string Package)
{
- map<string,Item>::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);