From 309cccfffc15657dd8654aa6a14e444bb47417ae Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 21 Feb 2022 22:54:05 +0300 Subject: Increment version iteration for external packages on buildfiles change --- bpkg/package.ixx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'bpkg/package.ixx') diff --git a/bpkg/package.ixx b/bpkg/package.ixx index a870eb8..9c85407 100644 --- a/bpkg/package.ixx +++ b/bpkg/package.ixx @@ -11,4 +11,23 @@ namespace bpkg version (v) { } + + template + inline bool + has_buildfile_clause (const vector& ds) + { + for (const dependency_alternatives& das: ds) + { + for (const dependency_alternative& da: das) + { + // Note: the accept clause cannot be present if the prefer clause is + // absent. + // + if (da.enable || da.reflect || da.prefer || da.require) + return true; + } + } + + return false; + } } -- cgit v1.1