Merge topic 'CPackDeb-fixFakerootOnControl'

abc9b32 Use fakeroot for control.tar.gz as well
This commit is contained in:
David Cole 2012-04-25 14:02:46 -04:00 committed by CMake Topic Stage
commit 21be162f9b
1 changed files with 10 additions and 5 deletions

View File

@ -480,11 +480,16 @@ int cmCPackDebGenerator::createDeb()
// Do not end the md5sum file with yet another (invalid) // Do not end the md5sum file with yet another (invalid)
} }
cmd = "\""; cmd = "";
cmd += cmakeExecutable; if (NULL != this->GetOption("CPACK_DEBIAN_FAKEROOT_EXECUTABLE"))
cmd += "\" -E tar cfz control.tar.gz ./control ./md5sums"; {
const char* controlExtra = cmd = this->GetOption("CPACK_DEBIAN_FAKEROOT_EXECUTABLE");
this->GetOption("CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA"); }
cmd += " \"";
cmd += cmakeExecutable;
cmd += "\" -E tar cfz control.tar.gz ./control ./md5sums";
const char* controlExtra =
this->GetOption("CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA");
if( controlExtra ) if( controlExtra )
{ {
std::vector<std::string> controlExtraList; std::vector<std::string> controlExtraList;