diff options
author | Eric NOULARD <eric.noulard@gmail.com> | 2012-04-17 07:22:07 (GMT) |
---|---|---|
committer | Eric NOULARD <eric.noulard@gmail.com> | 2012-04-17 07:22:07 (GMT) |
commit | abc9b32375952ab0a6a67f513a7f8dc594b06049 (patch) | |
tree | f3ec58580a8292fa2ac8e25bf1b25365ac1e3917 /Source/CPack/cmCPackDebGenerator.cxx | |
parent | 233b5cbaf70b9791df06e7e96737214e40780595 (diff) | |
download | CMake-abc9b32375952ab0a6a67f513a7f8dc594b06049.zip CMake-abc9b32375952ab0a6a67f513a7f8dc594b06049.tar.gz CMake-abc9b32375952ab0a6a67f513a7f8dc594b06049.tar.bz2 |
Use fakeroot for control.tar.gz as well
Diffstat (limited to 'Source/CPack/cmCPackDebGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackDebGenerator.cxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx index 178a18d..fa456de 100644 --- a/Source/CPack/cmCPackDebGenerator.cxx +++ b/Source/CPack/cmCPackDebGenerator.cxx @@ -480,11 +480,16 @@ int cmCPackDebGenerator::createDeb() // Do not end the md5sum file with yet another (invalid) } - cmd = "\""; - cmd += cmakeExecutable; - cmd += "\" -E tar cfz control.tar.gz ./control ./md5sums"; - const char* controlExtra = - this->GetOption("CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA"); + cmd = ""; + if (NULL != this->GetOption("CPACK_DEBIAN_FAKEROOT_EXECUTABLE")) + { + cmd = this->GetOption("CPACK_DEBIAN_FAKEROOT_EXECUTABLE"); + } + cmd += " \""; + cmd += cmakeExecutable; + cmd += "\" -E tar cfz control.tar.gz ./control ./md5sums"; + const char* controlExtra = + this->GetOption("CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA"); if( controlExtra ) { std::vector<std::string> controlExtraList; |