ENH: another fix for the deb generator by Mathieu
Alex
This commit is contained in:
parent
e41e2e6b1a
commit
f23169b01a
@ -126,7 +126,8 @@ int cmCPackDebGenerator::CompressFiles(const char* outFileName,
|
||||
topLevelWithTrailingSlash.c_str(), "");
|
||||
out << output;
|
||||
}
|
||||
out << std::endl;
|
||||
// each line contains a eol.
|
||||
// Do not end the md5sum file with yet another (invalid)
|
||||
}
|
||||
|
||||
|
||||
@ -157,6 +158,20 @@ int cmCPackDebGenerator::CompressFiles(const char* outFileName,
|
||||
res = cmSystemTools::RunSingleCommand(cmd.c_str(), &output,
|
||||
&retVal, toplevel, this->GeneratorVerbose, 0);
|
||||
|
||||
if ( !res || retVal )
|
||||
{
|
||||
std::string tmpFile = this->GetOption("CPACK_TOPLEVEL_DIRECTORY");
|
||||
tmpFile += "/Deb.log";
|
||||
cmGeneratedFileStream ofs(tmpFile.c_str());
|
||||
ofs << "# Run command: " << cmd.c_str() << std::endl
|
||||
<< "# Output:" << std::endl
|
||||
<< output.c_str() << std::endl;
|
||||
cmCPackLogger(cmCPackLog::LOG_ERROR, "Problem running ar command: "
|
||||
<< cmd.c_str() << std::endl
|
||||
<< "Please check " << tmpFile.c_str() << " for errors" << std::endl);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user