diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-06 13:03:10 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-06 13:03:10 (GMT) |
commit | 4040f5f1bf61a586808e4c5fd4cac073972f6fd9 (patch) | |
tree | 2a8fca5f82bbe55b4a221c4b5de28ca32e76eb8e /Source/CPack/cmCPackDebGenerator.cxx | |
parent | a442e0e0cb9d675ec171699d8591b6eced9c78be (diff) | |
download | CMake-4040f5f1bf61a586808e4c5fd4cac073972f6fd9.zip CMake-4040f5f1bf61a586808e4c5fd4cac073972f6fd9.tar.gz CMake-4040f5f1bf61a586808e4c5fd4cac073972f6fd9.tar.bz2 |
BUG: patch from Mathieu: the md5sums were not correct
Alex
Diffstat (limited to 'Source/CPack/cmCPackDebGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackDebGenerator.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx index 9623dac..9a236fb 100644 --- a/Source/CPack/cmCPackDebGenerator.cxx +++ b/Source/CPack/cmCPackDebGenerator.cxx @@ -108,6 +108,8 @@ int cmCPackDebGenerator::CompressFiles(const char* outFileName, { // the scope is needed for cmGeneratedFileStream cmGeneratedFileStream out(md5filename.c_str()); std::vector<std::string>::const_iterator fileIt; + std::string topLevelWithTrailingSlash = toplevel; + topLevelWithTrailingSlash += '/'; for ( fileIt = files.begin(); fileIt != files.end(); ++ fileIt ) { cmd = cmakeExecutable; @@ -117,6 +119,11 @@ int cmCPackDebGenerator::CompressFiles(const char* outFileName, //int retVal = -1; res = cmSystemTools::RunSingleCommand(cmd.c_str(), &output, &retVal, toplevel, this->GeneratorVerbose, 0); + // debian md5sums entries are like this: + // 014f3604694729f3bf19263bac599765 usr/bin/ccmake + // thus strip the full path (with the trailing slash) + cmSystemTools::ReplaceString(output, + topLevelWithTrailingSlash.c_str(), ""); out << output; } out << std::endl; |