From cbd3cd125b574deaf1ad3c7001c5b6c9c40198ed Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 22 Dec 2018 22:42:13 +0300 Subject: Add support for $ in package manifest dependency constraint --- bpkg/satisfaction.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bpkg/satisfaction.cxx') diff --git a/bpkg/satisfaction.cxx b/bpkg/satisfaction.cxx index e620d3b..801fe5f 100644 --- a/bpkg/satisfaction.cxx +++ b/bpkg/satisfaction.cxx @@ -17,7 +17,7 @@ namespace bpkg bool satisfies (const version& v, const dependency_constraint& c) { - assert (!c.empty ()); + assert (!c.empty () && c.complete ()); if (v == wildcard_version) return true; @@ -45,7 +45,7 @@ namespace bpkg bool satisfies (const dependency_constraint& l, const dependency_constraint& r) { - assert (!l.empty () && !r.empty ()); + assert (!l.empty () && l.complete () && !r.empty () && r.complete ()); // Note: the revision ignoring logic is still unclear/unimplemented. It // seems it will be specific to each case below. -- cgit v1.1