Skip to content

Commit

Permalink
MDEV-26119 RPM packages on RHEL-8 require the latest minor
Browse files Browse the repository at this point in the history
changed rpm db query to output only version for libsepol and not release/buildnumber
  • Loading branch information
abychko committed Jul 13, 2021
1 parent 191cae2 commit 165a6dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support-files/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ IF(UNIX)
INSTALL(FILES ${out} DESTINATION ${inst_location}/policy/selinux COMPONENT SupportFiles)
ENDFOREACH()
IF(RPM)
EXECUTE_PROCESS(COMMAND rpm -q --qf "%{VERSION}-%{RELEASE}" libsepol
EXECUTE_PROCESS(COMMAND rpm -q --qf "%{VERSION}" libsepol
OUTPUT_VARIABLE LIBSEPOL_VERSION RESULT_VARIABLE err)
IF (NOT err)
SET(CPACK_RPM_server_PACKAGE_REQUIRES
Expand Down

0 comments on commit 165a6dc

Please sign in to comment.