summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-04-25 18:02:46 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-04-25 18:02:46 (GMT)
commit21be162f9b33b0054e7dd7f5cb0ce93685ae08b3 (patch)
tree3795d2b06e4afcb532793d7446a5b203dbf621b9 /Source
parent82c579de45a20ccbdd6c016199799e6922361de7 (diff)
parentabc9b32375952ab0a6a67f513a7f8dc594b06049 (diff)
downloadCMake-21be162f9b33b0054e7dd7f5cb0ce93685ae08b3.zip
CMake-21be162f9b33b0054e7dd7f5cb0ce93685ae08b3.tar.gz
CMake-21be162f9b33b0054e7dd7f5cb0ce93685ae08b3.tar.bz2
Merge topic 'CPackDeb-fixFakerootOnControl'
abc9b32 Use fakeroot for control.tar.gz as well
Diffstat (limited to 'Source')
-rw-r--r--Source/CPack/cmCPackDebGenerator.cxx15
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;