summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2018-10-26 16:12:59 +0200
committerDavid Faure <faure@kde.org>2018-11-05 10:57:55 +0000
commit4f7ad5ec448d38137ddc4de5624215ba0f8ebfa9 (patch)
tree48d5b227a5ac83112eaf4140ebb3621fceae5fd5
parentd520f0d63b93b2c22efdb7b1107928faddc7a8f6 (diff)
downloadshared-mime-info-4f7ad5ec448d38137ddc4de5624215ba0f8ebfa9.tar.gz
Give weight to one of the appimage patterns
we have two patterns with "*.appimage" but none of them had weight so when deciding which one to pick when not using data the algorithm described at the spec "fails" because it says "Otherwise use the result of the glob match that has the highest weight." but both had the same.
-rw-r--r--freedesktop.org.xml.in2
-rw-r--r--tests/list4
2 files changed, 3 insertions, 3 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index 5135e01b..97d3c46b 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -7217,7 +7217,7 @@ command to generate the output files.
</match>
</match>
</magic>
- <glob pattern="*.appimage"/>
+ <glob weight="60" pattern="*.appimage"/>
</mime-type>
<mime-type type="application/vnd.snap">
diff --git a/tests/list b/tests/list
index 24aa196f..ae9032e0 100644
--- a/tests/list
+++ b/tests/list
@@ -501,9 +501,9 @@ disk.raw-disk-image.xz application/x-raw-disk-image-xz-compressed oxo
# Disk 1 of the Agony Amiga game truncated to 1Ko
adf-test.adf application/x-amiga-disk-format
# AppImage
-Leafpad-0.8.17-x86_64.AppImage application/x-iso9660-appimage
+Leafpad-0.8.17-x86_64.AppImage application/x-iso9660-appimage x
# AppImage (Type 2)
-Leafpad-0.8.18.1.glibc2.4-x86_64.AppImage application/vnd.appimage x
+Leafpad-0.8.18.1.glibc2.4-x86_64.AppImage application/vnd.appimage
# SAP Thomson disk images
ripoux.sap application/x-thomson-sap-image
# HFE disk images