From edba837295e8514ae83b285ad5fbda771961eb55 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 18 Sep 2018 17:28:49 +0200 Subject: [PATCH] Fix RPM Suffix --- cmake/Rpm.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Rpm.cmake b/cmake/Rpm.cmake index b91c6e9a0..03fa84051 100644 --- a/cmake/Rpm.cmake +++ b/cmake/Rpm.cmake @@ -1,7 +1,7 @@ find_program(LSB_RELEASE_EXEC lsb-release) if (LSB_RELEASE_EXEC) - execute_process(COMMAND /bin/sh "-c" "${LSB_RELEASE_EXEC} -is | tr '[:upper:]' '[:lower:]'" + execute_process(COMMAND /bin/sh "-c" "${LSB_RELEASE_EXEC} -is | tr '[:upper:]' '[:lower:]' | cut -d' ' -f1" OUTPUT_VARIABLE DIST_NAME OUTPUT_STRIP_TRAILING_WHITESPACE )