summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/debindexfile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/deb/debindexfile.cc')
-rw-r--r--apt-pkg/deb/debindexfile.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/apt-pkg/deb/debindexfile.cc b/apt-pkg/deb/debindexfile.cc
index ff8bce85d..b3b77dad7 100644
--- a/apt-pkg/deb/debindexfile.cc
+++ b/apt-pkg/deb/debindexfile.cc
@@ -158,6 +158,17 @@ debPackagesIndex::debPackagesIndex(string URI,string Dist,string Section,bool Tr
{
}
/*}}}*/
+
+string debPackagesIndex::ArchiveURI(string File) const
+{
+ // FIXME: EVIL! Remove as soon as pdiff support is offical
+ string remap = _config->Find("APT::URL-Remap::"+URI,"");
+ if(!remap.empty())
+ return remap+File;
+
+ return URI + File;
+}
+
// PackagesIndex::ArchiveInfo - Short version of the archive url /*{{{*/
// ---------------------------------------------------------------------
/* This is a shorter version that is designed to be < 60 chars or so */