Просмотр исходного кода

* be less verbose and call the Url-Remap: APT::URL-Remap

Michael Vogt лет назад: 21
Родитель
Сommit
8bbf85bf05
1 измененных файлов с 2 добавлено и 6 удалено
  1. 2 6
      apt-pkg/deb/debindexfile.cc

+ 2 - 6
apt-pkg/deb/debindexfile.cc

@@ -161,14 +161,10 @@ 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,"");
+   // FIXME: EVIL! Remove as soon as pdiff support is offical
+   string remap = _config->Find("APT::URL-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;
 }