summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-09-27 22:52:45 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-09-27 22:52:45 +0000
commit29998d34c434ba03fbe8e2dca0fd2f54b15da480 (patch)
treeab1a3e6f6e4267f391f6e91b901803e98e04497d /apt-pkg
parentbb4fc0a9e4e105a13b3a032b28802a84523fc506 (diff)
* added DDTP::URL-Remap. KILL THIS FEATURE once ddtp support is offical
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/deb/debindexfile.cc14
1 files changed, 11 insertions, 3 deletions
diff --git a/apt-pkg/deb/debindexfile.cc b/apt-pkg/deb/debindexfile.cc
index 38ecdd16a..e2ed86890 100644
--- a/apt-pkg/deb/debindexfile.cc
+++ b/apt-pkg/deb/debindexfile.cc
@@ -338,15 +338,23 @@ inline string debTranslationsIndex::IndexFile(const char *Type) const
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;