summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorAsit Dhal <dhal.asitk@gmail.com>2021-01-15 15:34:03 (GMT)
committerAsit Dhal <dhal.asitk@gmail.com>2021-01-15 15:41:37 (GMT)
commit8f3367449183608fbae0de171825e75da8f6b79a (patch)
treedbed00fa6a0966a8a33b5dbb3f174f946ddf1e14 /Source/CPack
parent205d30df12b6965869acfa143215cd3e6f5e75db (diff)
downloadCMake-8f3367449183608fbae0de171825e75da8f6b79a.zip
CMake-8f3367449183608fbae0de171825e75da8f6b79a.tar.gz
CMake-8f3367449183608fbae0de171825e75da8f6b79a.tar.bz2
cpack(DEB): Issue warning if custom script for control file is missing
Fixes: #17794
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/cmCPackDebGenerator.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx
index 43dbdb5..1220514 100644
--- a/Source/CPack/cmCPackDebGenerator.cxx
+++ b/Source/CPack/cmCPackDebGenerator.cxx
@@ -396,6 +396,15 @@ bool DebGenerator::generateControlTar(std::string const& md5Filename) const
}
// if we can copy the file, it means it does exist, let's add it:
+ if (!cmsys::SystemTools::FileExists(i)) {
+ cmCPackLogger(cmCPackLog::LOG_WARNING,
+ "Adding file to tar:" << std::endl
+ << "#top level directory: "
+ << this->WorkDir << std::endl
+ << "#missing file: " << i
+ << std::endl);
+ }
+
if (cmsys::SystemTools::CopyFileIfDifferent(i, localcopy)) {
control_tar.Add(localcopy, this->WorkDir.length(), ".");
}