From 33391c697f14f1c2d1204bcfed341bcb2cc89b05 Mon Sep 17 00:00:00 2001 From: Martin Konrad Date: Thu, 24 Mar 2011 09:25:58 +0100 Subject: [PATCH] CPackDeb: Fix #12006 broken package names Signed-off-by: Eric NOULARD --- Modules/CPackDeb.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/CPackDeb.cmake b/Modules/CPackDeb.cmake index 469f08fdc..90c80a4dc 100644 --- a/Modules/CPackDeb.cmake +++ b/Modules/CPackDeb.cmake @@ -316,6 +316,7 @@ IF(CPACK_DEB_PACKAGE_COMPONENT) SET(CPACK_DEB_PACKAGE_COMPONENT_PART_NAME "-${CPACK_DEB_PACKAGE_COMPONENT}") SET(CPACK_DEB_PACKAGE_COMPONENT_PART_PATH "/${CPACK_DEB_PACKAGE_COMPONENT}") SET(WDIR "${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}/${CPACK_DEB_PACKAGE_COMPONENT}") + STRING(TOLOWER "${CPACK_PACKAGE_NAME}${CPACK_DEB_PACKAGE_COMPONENT_PART_NAME}" CPACK_DEBIAN_PACKAGE_NAME) ELSE(CPACK_DEB_PACKAGE_COMPONENT) SET(CPACK_DEB_PACKAGE_COMPONENT_PART_NAME "") SET(CPACK_DEB_PACKAGE_COMPONENT_PART_PATH "")