summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorOtto Urpelainen <oturpe@iki.fi>2021-05-13 23:21:34 +0300
committerRichard Hughes <richard@hughsie.com>2021-05-18 13:31:18 +0100
commitcf73b762112730acfd4f7b11594a30a2b49e2443 (patch)
tree1241d3198362ccf7ba65342e263228b33bd429c2 /data
parent462dcd2b74dbeec45d900603320c8d9074f13cc9 (diff)
downloadappstream-glib-cf73b762112730acfd4f7b11594a30a2b49e2443.tar.gz
Add validation for duplicate license xml elements
AppStream license syntax allows constructs of form "LICENSE1 AND LICENSE2". It is possible to confuse this with writing multiple license xml elements in a metainfo file. In order to spot this type of error, duplicate detection is added for xml elements metadata_license and project_license.
Diffstat (limited to 'data')
-rw-r--r--data/tests/broken.appdata.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/tests/broken.appdata.xml b/data/tests/broken.appdata.xml
index 1603848..e4c3148 100644
--- a/data/tests/broken.appdata.xml
+++ b/data/tests/broken.appdata.xml
@@ -4,6 +4,7 @@
<metadata_license>GPLv3+</metadata_license>
<metadata_license>BSD</metadata_license>
<project_license>CC1</project_license>
+ <project_license>CC1</project_license>
<project_group>GNU</project_group>
<name>Power Statistics.</name>
<summary>Observe power management.</summary>