aptitude has a define for VERSION, so to not generate a FTBFS we just
rename our enum element to a slightly less generic name.
Git-Dch: Ignore
std::string const version(Open + 1, (Close - Open) - 1);
if (version != Ver.VerStr())
{
std::string const version(Open + 1, (Close - Open) - 1);
if (version != Ver.VerStr())
{
- map_stringitem_t const idx = StoreString(pkgCacheGenerator::VERSION, version);
+ map_stringitem_t const idx = StoreString(pkgCacheGenerator::VERSIONNUMBER, version);
Ver->SourceVerStr = idx;
}
}
Ver->SourceVerStr = idx;
}
}
}
APT_INRELEASE(MIXED, "Suite", FileI->Archive)
APT_INRELEASE(MIXED, "Component", FileI->Component)
}
APT_INRELEASE(MIXED, "Suite", FileI->Archive)
APT_INRELEASE(MIXED, "Component", FileI->Component)
- APT_INRELEASE(VERSION, "Version", FileI->Version)
+ APT_INRELEASE(VERSIONNUMBER, "Version", FileI->Version)
APT_INRELEASE(MIXED, "Origin", FileI->Origin)
APT_INRELEASE(MIXED, "Codename", FileI->Codename)
APT_INRELEASE(MIXED, "Label", FileI->Label)
APT_INRELEASE(MIXED, "Origin", FileI->Origin)
APT_INRELEASE(MIXED, "Codename", FileI->Codename)
APT_INRELEASE(MIXED, "Label", FileI->Label)
}
}
// haven't found the version string, so create
}
}
// haven't found the version string, so create
- map_stringitem_t const idxVerStr = StoreString(VERSION, VerStr);
+ map_stringitem_t const idxVerStr = StoreString(VERSIONNUMBER, VerStr);
if (unlikely(idxVerStr == 0))
return 0;
Ver->VerStr = idxVerStr;
if (unlikely(idxVerStr == 0))
return 0;
Ver->VerStr = idxVerStr;
if (index == 0)
{
void const * const oldMap = Map.Data();
if (index == 0)
{
void const * const oldMap = Map.Data();
- index = StoreString(VERSION, Version);
+ index = StoreString(VERSIONNUMBER, Version);
if (unlikely(index == 0))
return false;
if (OldDepLast != 0 && oldMap != Map.Data())
if (unlikely(index == 0))
return false;
if (OldDepLast != 0 && oldMap != Map.Data())
switch(type) {
case MIXED: strings = &strMixed; break;
case PKGNAME: strings = &strPkgNames; break;
switch(type) {
case MIXED: strings = &strMixed; break;
case PKGNAME: strings = &strPkgNames; break;
- case VERSION: strings = &strVersions; break;
+ case VERSIONNUMBER: strings = &strVersions; break;
case SECTION: strings = &strSections; break;
default: _error->Fatal("Unknown enum type used for string storage of '%s'", key.c_str()); return 0;
}
case SECTION: strings = &strSections; break;
default: _error->Fatal("Unknown enum type used for string storage of '%s'", key.c_str()); return 0;
}
- enum StringType { MIXED, PKGNAME, VERSION, SECTION };
- map_stringitem_t StoreString(enum StringType const type, const char * S, unsigned int const Size);
+ enum StringType { MIXED, PKGNAME, VERSIONNUMBER, SECTION };
+ map_stringitem_t StoreString(StringType const type, const char * S, unsigned int const Size);
inline map_stringitem_t StoreString(enum StringType const type, const std::string &S) {return StoreString(type, S.c_str(),S.length());};
void DropProgress() {Progress = 0;};
inline map_stringitem_t StoreString(enum StringType const type, const std::string &S) {return StoreString(type, S.c_str(),S.length());};
void DropProgress() {Progress = 0;};