X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/29998d34c434ba03fbe8e2dca0fd2f54b15da480..773721d74cee9bc7136afc097e479387be7dea7d:/apt-pkg/deb/debindexfile.cc diff --git a/apt-pkg/deb/debindexfile.cc b/apt-pkg/deb/debindexfile.cc index e2ed86890..ed7633803 100644 --- a/apt-pkg/deb/debindexfile.cc +++ b/apt-pkg/deb/debindexfile.cc @@ -9,10 +9,6 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#ifdef __GNUG__ -#pragma implementation "apt-pkg/debindexfile.h" -#endif - #include #include #include @@ -305,7 +301,7 @@ pkgCache::PkgFileIterator debPackagesIndex::FindInCache(pkgCache &Cache) const 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; @@ -338,23 +334,15 @@ 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 = 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;