Skip to content

Commit a9ee4b0

Browse files
committed
Keep - to prefere ppa versions over debian builds +dfsg
1 parent 0358cf1 commit a9ee4b0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packaging/CPackConfig.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-source")
1919
# dpkg --compare-versions 2.3~alpha~1234~g8163 lt 2.3~beta~1234~g8163 && echo true
2020
# dpkg --compare-versions 2.3~beta~1234~g8163 lt 2.3.0 && echo true
2121
# dpkg --compare-versions 2.3.0 lt 2.3.0+2345+g163 && echo true
22+
# dpkg --compare-versions 2.5.0+dfsg lt 2.5.0-162-ge8003108c3-1~plucky && echo true
2223
if (PACKAGE_VERSION MATCHES "^[0-9]+\\.[0-9]+[A-Za-z0-9.+~-]*$")
2324
if (PACKAGE_VERSION MATCHES "(alpha|beta)")
2425
string(REPLACE "-" "~" CPACK_DEBIAN_PACKAGE_VERSION "${PACKAGE_VERSION}")
25-
else()
26-
string(REPLACE "-" "+" CPACK_DEBIAN_PACKAGE_VERSION "${PACKAGE_VERSION}")
2726
endif()
2827
else()
2928
string(REPLACE "-" "~" CPACK_DEBIAN_PACKAGE_VERSION "${CPACK_MIXXX_VERSION}")

0 commit comments

Comments
 (0)