summaryrefslogtreecommitdiffstats
path: root/Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake
diff options
context:
space:
mode:
authorRaffi Enficiaud <raffi.enficiaud@mines-paris.org>2015-09-18 20:20:42 (GMT)
committerDomen Vrankar <domen.vrankar@gmail.com>2015-09-18 20:20:42 (GMT)
commit7c7874c86ef14f2866d38d5ee85709db6e71d217 (patch)
tree3d2ef67cd3c9c146976e2c93bd80a12d186aba83 /Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake
parente3ace61212db5c960132ef0868f49cf05fe1c021 (diff)
downloadCMake-7c7874c86ef14f2866d38d5ee85709db6e71d217.zip
CMake-7c7874c86ef14f2866d38d5ee85709db6e71d217.tar.gz
CMake-7c7874c86ef14f2866d38d5ee85709db6e71d217.tar.bz2
CPackDeb: preventing md5sum on symlinks
- Direct call to cmSystemTools::ComputeFileMD5 - Avoiding hashing symlinks - Tests
Diffstat (limited to 'Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake')
-rw-r--r--Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake12
1 files changed, 9 insertions, 3 deletions
diff --git a/Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake b/Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake
index b96669e..bf9f81d 100644
--- a/Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake
+++ b/Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake
@@ -137,6 +137,8 @@ endfunction()
# This function runs dpkg-deb on a .deb and returns its output
+# the default behaviour it to run "--info" on the specified Debian package
+# ACTION is one of the option accepted by dpkg-deb
function(run_dpkgdeb dpkg_deb_output)
set(${dpkg_deb_output} "" PARENT_SCOPE)
@@ -144,7 +146,7 @@ function(run_dpkgdeb dpkg_deb_output)
if(DPKGDEB_EXECUTABLE)
set(options "")
- set(oneValueArgs "FILENAME")
+ set(oneValueArgs "FILENAME" "ACTION")
set(multiValueArgs "")
cmake_parse_arguments(run_dpkgdeb_deb "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
@@ -153,8 +155,12 @@ function(run_dpkgdeb dpkg_deb_output)
message(FATAL_ERROR "error: run_dpkgdeb needs FILENAME to be set")
endif()
- # run lintian
- execute_process(COMMAND ${DPKGDEB_EXECUTABLE} -I ${run_dpkgdeb_deb_FILENAME}
+ if(NOT run_dpkgdeb_deb_ACTION)
+ set(run_dpkgdeb_deb_ACTION "--info")
+ endif()
+
+ # run dpkg-deb
+ execute_process(COMMAND ${DPKGDEB_EXECUTABLE} ${run_dpkgdeb_deb_ACTION} ${run_dpkgdeb_deb_FILENAME}
WORKING_DIRECTORY "${CPACK_TEMPORARY_DIRECTORY}"
OUTPUT_VARIABLE DPKGDEB_OUTPUT
RESULT_VARIABLE DPKGDEB_RESULT