]> git.saurik.com Git - apt.git/blobdiff - ftparchive/writer.cc
Ensure that no by-hash file for "Release/InRelease is written"
[apt.git] / ftparchive / writer.cc
index 82049836a2f98ea3b89845602f09a7a80695ef12..eff68f07ea12ea10f95a1dc6f9eb76b67e52f5be 100644 (file)
@@ -1085,8 +1085,10 @@ bool ReleaseWriter::DoPackage(string FileName)
       {
          if (!h->usable())
             continue;
-         std::string ByHashOutputFile = GenByHashFilename(Input, *h);
+         if (flNotDir(FileName) == "Release" || flNotDir(FileName) == "InRelease")
+            continue;
 
+         std::string ByHashOutputFile = GenByHashFilename(Input, *h);
          std::string ByHashOutputDir = flNotFile(ByHashOutputFile);
          if(!CreateDirectory(flNotFile(Input), ByHashOutputDir))
             return _error->Warning("can not create dir %s", flNotFile(ByHashOutputFile).c_str());