[opencv] 47/98: Added check if debian package version matches version from version.hpp

Mattia Rizzolo mattia at debian.org
Tue Oct 4 17:51:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to annotated tag 2.4.13
in repository opencv.

commit 9c4204b89efbd603938451fa3a1344efee0002b2
Author: Alexander Smorkalov <alexander.smorkalov at itseez.com>
Date:   Fri Mar 11 11:59:15 2016 +0300

    Added check if debian package version matches version from version.hpp
---
 cmake/OpenCVPackaging.cmake | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmake/OpenCVPackaging.cmake b/cmake/OpenCVPackaging.cmake
index 0a53e92..f6a5580 100644
--- a/cmake/OpenCVPackaging.cmake
+++ b/cmake/OpenCVPackaging.cmake
@@ -19,6 +19,9 @@ OpenCV makes it easy for businesses to utilize and modify the code.")
   set(CPACK_PACKAGE_VERSION_MINOR "${OPENCV_VERSION_MINOR}")
   set(CPACK_PACKAGE_VERSION_PATCH "${OPENCV_VERSION_PATCH}")
   set(CPACK_PACKAGE_VERSION "${OPENCV_VCSVERSION}")
+  if (NOT "${OPENCV_VCSVERSION}" MATCHES "^${OPENCV_VERSION}.*")
+    message(WARNING "CPACK_PACKAGE_VERSION does not match version provided by version.hpp header!")
+  endif()
   set(OPENCV_DEBIAN_COPYRIGHT_FILE "")
 endif(NOT OPENCV_CUSTOM_PACKAGE_INFO)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git



More information about the debian-science-commits mailing list