(svn r22904) -Codechange: add tar filename to file scanning

This commit is contained in:
rubidium
2011-09-08 09:48:52 +00:00
parent 86d94de76b
commit 661e5c6655
9 changed files with 27 additions and 17 deletions

View File

@@ -378,7 +378,7 @@ struct AIFileChecksumCreator : FileScanner {
}
/* Add the file and calculate the md5 sum. */
virtual bool AddFile(const char *filename, size_t basepath_length)
virtual bool AddFile(const char *filename, size_t basepath_length, const char *tar_filename)
{
Md5 checksum;
uint8 buffer[1024];
@@ -446,7 +446,7 @@ static bool IsSameAI(const ContentInfo *ci, bool md5sum, AIFileInfo *info)
/* Create the full path name, */
seprintf(path, lastof(path), "%s%c%s", tar->second.tar_filename, PATHSEPCHAR, tar->first.c_str());
checksum.AddFile(path, 0);
checksum.AddFile(path, 0, NULL);
}
} else {
/* Add the path sep char back when searching a directory, so we are