aboutsummaryrefslogtreecommitdiff
path: root/libbpkg/manifest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbpkg/manifest.cxx')
-rw-r--r--libbpkg/manifest.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbpkg/manifest.cxx b/libbpkg/manifest.cxx
index 119f894..c4e4ed3 100644
--- a/libbpkg/manifest.cxx
+++ b/libbpkg/manifest.cxx
@@ -4051,6 +4051,8 @@ namespace bpkg
parse_distribution (move (n), n.size () - 22, move (v)),
false /* unique */);
}
+ // Note: must follow the check for "upstream-version".
+ //
else if (n.size () > 8 && n.compare (n.size () - 8, 8, "-version") == 0)
{
// If the value is forbidden then throw, but only after the name is
@@ -4316,6 +4318,8 @@ namespace bpkg
const string& n (nv.name);
string& v (nv.value);
+ // @@ redo by checking no other `-`.
+ //
if (v == "$" &&
(n.size () > 8 && n.compare (n.size () - 8, 8, "-version") == 0) &&
(n.size () <= 22 ||