##################################################################### */
/*}}}*/
// Include Files /*{{{*/
-#ifdef __GNUG__
-#pragma implementation "apt-pkg/debindexfile.h"
-#endif
-
#include <apt-pkg/debindexfile.h>
#include <apt-pkg/debsrcrecords.h>
#include <apt-pkg/deblistparser.h>
pkgCache::PkgFileIterator File = Cache.FileBegin();
for (; File.end() == false; File++)
{
- if (FileName != File.FileName())
+ if (File.FileName() == NULL || FileName != File.FileName())
continue;
struct stat St;
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 = theURI + Dist;
+ Res = URI + Dist;
else
- Res = theURI;
+ Res = URI;
}
else
- Res = theURI + "dists/" + Dist + '/' + Section +
+ Res = URI + "dists/" + Dist + '/' + Section +
"/i18n/Translation-";
Res += Type;