File: text-org.patch

package info (click to toggle)
beangulp 0.2.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 876 kB
  • sloc: python: 4,199; xml: 32; makefile: 6; sh: 5
file content (29 lines) | stat: -rw-r--r-- 1,095 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Colin Watson <cjwatson@debian.org>
Date: Sun, 26 Oct 2025 01:05:09 +0100
Subject: Add text/org MIME type

This was registered with IANA on 2025-09-25
(https://www.iana.org/assignments/media-types/text/org), and the test
file is detected as `text/org` on current Debian testing.

Forwarded: https://github.com/beancount/beangulp/pull/193
Bug-Debian: https://bugs.debian.org/1118418
Last-Update: 2025-10-26
---
 beangulp/file_type_test.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/beangulp/file_type_test.py b/beangulp/file_type_test.py
index 8cb6872..4db42ea 100644
--- a/beangulp/file_type_test.py
+++ b/beangulp/file_type_test.py
@@ -65,7 +65,8 @@ class TestFileType(unittest.TestCase):
         self.check_mime_type('example.txt', 'text/plain')
 
     def test_org(self):
-        self.check_mime_type('example.org', ['text/plain',
+        self.check_mime_type('example.org', ['text/org',
+                                             'text/plain',
                                              'application/vnd.lotus-organizer'])
 
     def test_xml(self):