summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2019-05-10 16:42:20 +0100
committerPhilip Withnall <withnall@endlessm.com>2019-05-13 13:29:29 +0100
commitfac9a027c2ce895dfb82681cd71eaa69048b478b (patch)
tree6a9fae79fa7493d72393f3e2debb8eb43541bb8f
parent5e9265c5feef25539d2c22a299392d4bd88ce452 (diff)
downloadshared-mime-info-fac9a027c2ce895dfb82681cd71eaa69048b478b.tar.gz
Add x-content/ostree-repository content type for OSTree USB repositories
These are a way of transferring OSTrees (OS images or flatpak apps, typically) on USB sticks. Documentation available here: https://github.com/ostreedev/ostree/blob/master/man/ostree-create-usb.xml
-rw-r--r--freedesktop.org.xml.in10
-rw-r--r--tests/ostree-repository/.ostree/repo/summary1
-rw-r--r--tests/tree-list1
3 files changed, 12 insertions, 0 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index 13430ea0..c6b6abb4 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -7087,6 +7087,16 @@ command to generate the output files.
<_comment>portable audio player</_comment>
</mime-type>
+ <mime-type type="x-content/ostree-repository">
+ <!-- https://github.com/ostreedev/ostree/blob/master/man/ostree-create-usb.xml -->
+ <_comment>OSTree software updates</_comment>
+ <treemagic>
+ <treematch path=".ostree" type="directory" non-empty="true" match-case="true" />
+ <treematch path="ostree/repo" type="directory" non-empty="true" match-case="true" />
+ <treematch path="var/lib/flatpak/repo" type="directory" non-empty="true" match-case="true" />
+ </treemagic>
+ </mime-type>
+
<mime-type type="x-content/software">
<!-- http://standards.freedesktop.org/autostart-spec/autostart-spec-latest.html
http://bugzilla.gnome.org/show_bug.cgi?id=509823#c3 -->
diff --git a/tests/ostree-repository/.ostree/repo/summary b/tests/ostree-repository/.ostree/repo/summary
new file mode 100644
index 00000000..3dfcfc92
--- /dev/null
+++ b/tests/ostree-repository/.ostree/repo/summary
@@ -0,0 +1 @@
+not actually a valid summary
diff --git a/tests/tree-list b/tests/tree-list
index 38a5532d..b8062767 100644
--- a/tests/tree-list
+++ b/tests/tree-list
@@ -9,6 +9,7 @@ video-bluray x-content/video-bluray
video-hddvd x-content/video-hddvd
image-picturecd x-content/image-picturecd
software x-content/unix-software
+ostree-repository x-content/ostree-repository
# Supposed to fail
x tree-failure x-content/image-dcf