diff options
Diffstat (limited to 'ftparchive')
-rw-r--r-- | ftparchive/byhash.cc | 3 | ||||
-rw-r--r-- | ftparchive/byhash.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/ftparchive/byhash.cc b/ftparchive/byhash.cc index 04f8f1629..0a38457c0 100644 --- a/ftparchive/byhash.cc +++ b/ftparchive/byhash.cc @@ -48,9 +48,8 @@ void DeleteAllButMostRecent(std::string dir, int KeepFiles) // Takes a input filename (e.g. binary-i386/Packages) and a hashstring // of the Input data and transforms it into a suitable by-hash filename -std::string GenByHashFilename(std::string Input, HashString h) +std::string GenByHashFilename(std::string ByHashOutputFile, HashString const &h) { - std::string ByHashOutputFile = Input; std::string const ByHash = "/by-hash/" + h.HashType() + "/" + h.HashValue(); size_t trailing_slash = ByHashOutputFile.find_last_of("/"); if (trailing_slash == std::string::npos) diff --git a/ftparchive/byhash.h b/ftparchive/byhash.h index ce05397ad..9fbb479a7 100644 --- a/ftparchive/byhash.h +++ b/ftparchive/byhash.h @@ -11,6 +11,8 @@ #ifndef BYHASH_H #define BYHASH_H +#include <string> + class HashString; // Delete all files in "dir" except for the number specified in "KeepFiles" @@ -18,6 +20,6 @@ class HashString; void DeleteAllButMostRecent(std::string dir, int KeepFiles); // takes a regular input filename -std::string GenByHashFilename(std::string Input, HashString h); +std::string GenByHashFilename(std::string Input, HashString const &h); #endif |