string debTranslationsIndex::IndexURI(const char *Type) const
{
string Res;
+
+ string theURI = URI;
+ // FIXME: EVIL! Remove as soon as pdiff support is offical
+ string remap = _config->Find("DDTP::URL-Remap::"+URI,"");
+ if(!remap.empty())
+ theURI = remap;
+
+
if (Dist[Dist.size() - 1] == '/')
{
if (Dist != "/")
- Res = URI + Dist;
+ Res = theURI + Dist;
else
- Res = URI;
+ Res = theURI;
}
else
- Res = URI + "dists/" + Dist + '/' + Section +
+ Res = theURI + "dists/" + Dist + '/' + Section +
"/i18n/Translation-";
Res += Type;