aboutsummaryrefslogtreecommitdiff
path: root/bpkg/manifest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/manifest.cxx')
-rw-r--r--bpkg/manifest.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/bpkg/manifest.cxx b/bpkg/manifest.cxx
index bc1531d..5a3357e 100644
--- a/bpkg/manifest.cxx
+++ b/bpkg/manifest.cxx
@@ -729,6 +729,9 @@ namespace bpkg
void package_manifest::
serialize (serializer& s) const
{
+ // @@ Should we check that all non-optional values are specified ?
+ //
+
s.next ("", "1"); // Start of manifest.
s.next ("name", name);
s.next ("version", version.string ());
@@ -1114,6 +1117,9 @@ namespace bpkg
if (n == "location")
{
+ if (!location.empty ())
+ bad_name ("location redefinition");
+
if (v.empty ())
bad_value ("empty location");