diff options
author | Michael Vogt <mvo@ubuntu.com> | 2015-09-07 11:39:52 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2015-09-07 11:39:52 +0200 |
commit | 2861bd9a2687dbd744997fddcfe90475be525bf0 (patch) | |
tree | c48aa42df9cbfdafcf78fc870e4cab954fc6a6c5 /ftparchive | |
parent | 7852873a1347fcab50393b545cc1e6edd65531c8 (diff) |
Ensure that no by-hash file for "Release/InRelease is written"
Git-Dch: ignore
Brown-paperbag: yes
Thanks: Donkult
Diffstat (limited to 'ftparchive')
-rw-r--r-- | ftparchive/writer.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc index 82049836a..eff68f07e 100644 --- a/ftparchive/writer.cc +++ b/ftparchive/writer.cc @@ -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()); |