File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,10 +19,13 @@ 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
22+ # dpkg --compare-versions 2.5.0+dfsg lt 2.5.0+r162+ ge8003108c3 && echo true
2323if (PACKAGE_VERSION MATCHES "^[0-9]+\\ .[0-9]+[A-Za-z0-9.+~-]*$" )
2424 if (PACKAGE_VERSION MATCHES "(alpha|beta)" )
2525 string (REPLACE "-" "~" CPACK_DEBIAN_PACKAGE_VERSION "${PACKAGE_VERSION} " )
26+ else ()
27+ string (REPLACE "-g" "+g" CPACK_DEBIAN_PACKAGE_VERSION "${PACKAGE_VERSION} " )
28+ string (REPLACE "-" "+r" CPACK_DEBIAN_PACKAGE_VERSION "${CPACK_DEBIAN_PACKAGE_VERSION} " )
2629 endif ()
2730else ()
2831 string (REPLACE "-" "~" CPACK_DEBIAN_PACKAGE_VERSION "${CPACK_MIXXX_VERSION} " )
You can’t perform that action at this time.
0 commit comments