#include <apt-pkg/strutl.h>
#include <apt-pkg/acquire-item.h>
#include <apt-pkg/debmetaindex.h>
-
+
#include <sys/stat.h>
/*}}}*/
{
}
/*}}}*/
+
+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 */
FileFd Rel(ReleaseFile,FileFd::ReadOnly);
if (_error->PendingError() == true)
return false;
- Parser.LoadReleaseInfo(File,Rel);
+ Parser.LoadReleaseInfo(File,Rel,Section);
}
return true;