summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/debindexfile.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-08-29 14:57:50 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-08-29 14:57:50 +0000
commit6040f5893a85c0206d3fd234c46a608b87a5e9ac (patch)
tree199c3ffa8bf120803c23709a3b86c8d076ce97eb /apt-pkg/deb/debindexfile.cc
parentd84cd8651bce12774b8bc5f471c4a3c59fe992de (diff)
* debug support (Debug::pkgAcquire::RRed) for rred method added
Diffstat (limited to 'apt-pkg/deb/debindexfile.cc')
-rw-r--r--apt-pkg/deb/debindexfile.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/apt-pkg/deb/debindexfile.cc b/apt-pkg/deb/debindexfile.cc
index ff8bce85d..3ceeffdca 100644
--- a/apt-pkg/deb/debindexfile.cc
+++ b/apt-pkg/deb/debindexfile.cc
@@ -158,6 +158,21 @@ debPackagesIndex::debPackagesIndex(string URI,string Dist,string Section,bool Tr
{
}
/*}}}*/
+
+string debPackagesIndex::ArchiveURI(string File) const
+{
+ // FIXME: Remove as soon as pdiff support is offical
+ string remap = _config->Find("APT::Diffs::Remap::"+URI,"");
+ if(!remap.empty())
+ {
+ std::cout << "doing a evil remapping to the URI as requested!\n";
+ std::cout << URI << " -> " << remap << std::endl;
+ 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 */