summaryrefslogtreecommitdiffstats
path: root/Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2019-07-05 09:50:38 (GMT)
committerRolf Eike Beer <eb@emlix.com>2019-07-05 14:24:58 (GMT)
commit3d11c63c9c338c4ed6e5d171f86af9cf6a7fca0f (patch)
tree6e389939fce105242a08cf1dfc5ae215c357e506 /Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake
parent09cf0520794d3716c0931584f908a575cd8b59d0 (diff)
downloadCMake-3d11c63c9c338c4ed6e5d171f86af9cf6a7fca0f.zip
CMake-3d11c63c9c338c4ed6e5d171f86af9cf6a7fca0f.tar.gz
CMake-3d11c63c9c338c4ed6e5d171f86af9cf6a7fca0f.tar.bz2
CPackComponentsDEB test: simplify if() arguments
Diffstat (limited to 'Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake')
-rw-r--r--Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake b/Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake
index 2f9e2fc..2093e7e 100644
--- a/Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake
+++ b/Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake
@@ -119,13 +119,13 @@ function(lintian_check_specific_errors output_errors)
# regex to avoid
foreach(_s IN LISTS lintian_check_specific_errors_deb_ERROR_REGEX_STRINGS)
- if("${_s}" STREQUAL "")
+ if(_s STREQUAL "")
continue()
endif()
string(REGEX MATCHALL "${_s}" "_TMP_CHECK_ERROR" "${lintian_output}")
- if(NOT "${_TMP_CHECK_ERROR}" STREQUAL "")
+ if(NOT _TMP_CHECK_ERROR STREQUAL "")
string(APPEND ERROR_ACC "\nlintian: ${_f}: output contains an undesirable regex:\n\t${_TMP_CHECK_ERROR}")
endif()
endforeach()
@@ -167,7 +167,7 @@ function(run_dpkgdeb dpkg_deb_output)
ERROR_VARIABLE DPKGDEB_ERROR
OUTPUT_STRIP_TRAILING_WHITESPACE )
- if(NOT ("${DPKGDEB_RESULT}" EQUAL "0"))
+ if(NOT DPKGDEB_RESULT EQUAL "0")
message(FATAL_ERROR "Error '${DPKGDEB_RESULT}' returned by dpkg-deb: '${DPKGDEB_ERROR}'")
endif()