Skip to content

Commit

Permalink
Fix validation with OpenSCAP 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Mab879 committed Aug 14, 2024
1 parent cb68b68 commit 54c57a6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmake/SSGCommon.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,9 @@ set(SSG_HTML_TABLE_FILE_LIST "")
# that the one that is picked by the build system.
macro(define_validate_product PRODUCT)
set(VALIDATE_PRODUCT TRUE)
if("${OSCAP_VERSION}" VERSION_LESS "1.4.0")
if("${PRODUCT}" MATCHES "^(ocp4|eks|ANOTHER_PROBLEMATIC_PRODUCT)$")
message(STATUS "Won't validate ${PRODUCT}, as it requires the OpenSCAP scanner that is capable of the validation.")
set(VALIDATE_PRODUCT FALSE)
endif()
if("${PRODUCT}" MATCHES "^(ocp4|eks|ANOTHER_PROBLEMATIC_PRODUCT)$")
message(STATUS "Won't validate ${PRODUCT}, as it requires the OpenSCAP scanner that is capable of the validation.")
set(VALIDATE_PRODUCT FALSE)
endif()
endmacro()

Expand Down

0 comments on commit 54c57a6

Please sign in to comment.