From 0f211c23677faffc005c5ead5ea5a509cc8390aa Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 30 May 2019 23:55:33 +0300 Subject: Allow specifying system package that doesn't belong to any repository for pkg-build --- bpkg/manifest-utility.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bpkg/manifest-utility.cxx') diff --git a/bpkg/manifest-utility.cxx b/bpkg/manifest-utility.cxx index 4eae405..8ff2090 100644 --- a/bpkg/manifest-utility.cxx +++ b/bpkg/manifest-utility.cxx @@ -8,6 +8,7 @@ #include #include +#include // wildcard_version #include #include @@ -67,7 +68,7 @@ namespace bpkg } version - parse_package_version (const char* s) + parse_package_version (const char* s, bool allow_wildcard) { using traits = string::traits_type; @@ -76,6 +77,9 @@ namespace bpkg if (*++p == '\0') fail << "empty package version in '" << s << "'"; + if (allow_wildcard && strcmp (p, "*") == 0) + return wildcard_version; + try { return version (p); -- cgit v1.1