[SCM] pkg-kde-jenkins packaging branch, master, updated. b47d863052ed1fb1922e7b4ec3c47865da7eb0dc

Maximiliano Curia maxy at moszumanska.debian.org
Mon Jun 26 15:14:54 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/pkg-kde-jenkins.git;a=commitdiff;h=9091c91

The following commit has been merged in the master branch:
commit 9091c912f2bd1fd016ac58303341f2d416363226
Author: Maximiliano Curia <maxy at gnuservers.com.ar>
Date:   Mon Apr 3 15:56:06 2017 +0200

    cmake_update_deps: also handle the included files
---
 hooks/prepare/cmake_update_deps | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/hooks/prepare/cmake_update_deps b/hooks/prepare/cmake_update_deps
index eee6ec9..8851cf0 100755
--- a/hooks/prepare/cmake_update_deps
+++ b/hooks/prepare/cmake_update_deps
@@ -607,6 +607,15 @@ class CMakeParser(Parser):
         if not isinstance(var_name, list):
             self.variables[var_name] = value
 
+    def include(self, invocation):
+        filename = self.relative_dirname_join(self.expand(invocation[1]))
+        if not os.path.exists(filename):
+            logging.warn(
+                'File: {} not found, TODO: search sys paths'.format(
+                    filename))
+            return
+        self.run_file(filename)
+
     def find_package(self, invocation):
         # find_package(pkgname [version] [exact] [quiet] [module] [required]
         # [[components] names] [optional_components names])
@@ -689,6 +698,7 @@ class CMakeParser(Parser):
 
         self.known_commands = {
             'add_subdirectory': self.add_subdirectory,
+            'include': self.include,
             'cmake_minimum_required': self.cmake_minimum_required,
             'set': self.cmake_set,
             'find_package': self.find_package,

-- 
pkg-kde-jenkins packaging



More information about the pkg-kde-commits mailing list