Skip to content

Commit

Permalink
Fix for Ubuntu bionic lsb_codename
Browse files Browse the repository at this point in the history
  • Loading branch information
ppodhajski authored and tribal-tec committed Jun 11, 2019
1 parent 54081c4 commit a4f0acd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CommonCPack.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,11 @@ if(CPACK_GENERATOR STREQUAL "DEB")
# Note: the ~codename is not part of any standard and could be omitted.
if(NOT CPACK_DEBIAN_PACKAGE_VERSION)
include(LSBInfo)
set(CPACK_DEBIAN_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}~${LSB_CODENAME}")
if (${LSB_CODENAME} STREQUAL "bionic")
set(CPACK_DEBIAN_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}")
elseif()
set(CPACK_DEBIAN_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}~${LSB_CODENAME}")
endif()
endif()
if(NOT CPACK_PACKAGE_FILE_NAME)
get_debian_arch(_deb_arch)
Expand Down

0 comments on commit a4f0acd

Please sign in to comment.