[devscripts] 01/01: suspicious-source: Add application/pgp-keys, and image/x-icon to mime-types. Add .gmo to file extensions.

Benjamin Drung bdrung at moszumanska.debian.org
Tue Jul 29 18:27:22 UTC 2014


This is an automated email from the git hooks/post-receive script.

bdrung pushed a commit to branch master
in repository devscripts.

commit b0657c14f1f012abf49997471dd735e751a0ecff
Author: Benjamin Drung <bdrung at debian.org>
Date:   Tue Jul 29 20:27:13 2014 +0200

    suspicious-source: Add application/pgp-keys, and image/x-icon to mime-types. Add .gmo to file extensions.
---
 debian/changelog          | 3 ++-
 scripts/suspicious-source | 3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index b46c0ef..b640ddf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,8 @@
 devscripts (2.14.6) UNRELEASED; urgency=medium
 
   [ Benjamin Drung ]
-  * suspicious-source: Add image/tiff to whitelisted mime-types.
+  * suspicious-source: Add image/tiff, application/pgp-keys, and image/x-icon
+    to whitelisted mime-types. Add .gmo to whitelisted file extensions.
   * wrap-and-sort: Add --max-line-length option with a default of 79 characters
     (it was previously hard-coded to 80 characters).  (Closes: #756067)
 
diff --git a/scripts/suspicious-source b/scripts/suspicious-source
index 70fbe4b..469c103 100755
--- a/scripts/suspicious-source
+++ b/scripts/suspicious-source
@@ -27,6 +27,7 @@ except ImportError:
     sys.exit(1)
 
 DEFAULT_WHITELISTED_MIMETYPES = [
+    "application/pgp-keys",
     "application/vnd.font-fontforge-sfd", # font source: fontforge
     "application/x-elc",
     "application/x-empty",
@@ -46,6 +47,7 @@ DEFAULT_WHITELISTED_MIMETYPES = [
     "image/vnd.adobe.photoshop",
     "image/x-icns",
     "image/x-ico",
+    "image/x-icon",
     "image/x-ms-bmp",
     "image/x-portable-pixmap",
     "image/x-xpmi",
@@ -83,6 +85,7 @@ DEFAULT_WHITELISTED_EXTENSIONS = [
     ".gdh",   # font source format: Graphite (headers)
     ".gdl",   # font source format: Graphite
     ".glyph", # font source format: cross-toolkit UFO
+    ".gmo",   # GNU Machine Object File (for translations with gettext)
     ".icns",  # Apple Icon Image format
     ".java",  # Java source files
     ".plate", # font source format: Spiro

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list