From 76bcf09fde0b981879ebb76dce0514e03ff88ad4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 6 Oct 2015 08:45:41 +0200 Subject: Rename dependency condition to constraint, add more operator<< --- bpkg/manifest | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'bpkg/manifest') diff --git a/bpkg/manifest b/bpkg/manifest index 8f5d975..0c7c693 100644 --- a/bpkg/manifest +++ b/bpkg/manifest @@ -237,16 +237,19 @@ namespace bpkg inline std::ostream& operator<< (std::ostream& os, comparison c) {return os << to_string (c);} - struct dependency_condition + struct dependency_constraint { comparison operation; bpkg::version version; }; + std::ostream& + operator<< (std::ostream&, const dependency_constraint&); + struct dependency { std::string name; - butl::optional condition; + butl::optional constraint; }; std::ostream& @@ -263,6 +266,9 @@ namespace bpkg : conditional (d), comment (std::move (c)) {} }; + std::ostream& + operator<< (std::ostream&, const dependency_alternatives&); + // requires // class requirement_alternatives: public strings -- cgit v1.1