else
{
Info += Dist + '/' + Section;
- if (Arch.empty() == true)
+ if (Arch.empty() != true)
Info += " " + Arch;
}
Info += " ";
{
map<string, string>::const_iterator const arch = Options.find("arch");
vector<string> const Archs =
- (arch != Options.end()) ? ExplodeString(arch->second, ',') :
+ (arch != Options.end()) ? VectorizeString(arch->second, ',') :
APT::Configuration::getArchitectures();
for (vector<metaIndex *>::const_iterator I = List.begin();
if (IsSrc == true)
Deb->PushSectionEntry("source", new debReleaseIndex::debSectionEntry(Section, IsSrc));
else
- Deb->PushSectionEntry(Archs, new debReleaseIndex::debSectionEntry(Section, IsSrc));
+ {
+ if (Dist[Dist.size() - 1] == '/')
+ Deb->PushSectionEntry("any", new debReleaseIndex::debSectionEntry(Section, IsSrc));
+ else
+ Deb->PushSectionEntry(Archs, new debReleaseIndex::debSectionEntry(Section, IsSrc));
+ }
return true;
}
}
if (IsSrc == true)
Deb->PushSectionEntry ("source", new debReleaseIndex::debSectionEntry(Section, IsSrc));
else
- Deb->PushSectionEntry (Archs, new debReleaseIndex::debSectionEntry(Section, IsSrc));
+ {
+ if (Dist[Dist.size() - 1] == '/')
+ Deb->PushSectionEntry ("any", new debReleaseIndex::debSectionEntry(Section, IsSrc));
+ else
+ Deb->PushSectionEntry (Archs, new debReleaseIndex::debSectionEntry(Section, IsSrc));
+ }
List.push_back(Deb);
return true;
}