Browse Source

Fix strength of Python script detection. Closes: #698569, #798796

Christoph Biedl 8 years ago
parent
commit
4c06d968a4
2 changed files with 16 additions and 0 deletions
  1. 15 0
      debian/patches/amend.FILE5_24-26-ge92eb5c.python-mime.patch
  2. 1 0
      debian/patches/series

+ 15 - 0
debian/patches/amend.FILE5_24-26-ge92eb5c.python-mime.patch

@@ -0,0 +1,15 @@
+Subject: Fix strength of Python script detection. Closes: #698569, #798796
+Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
+Date: Sun Sep 13 12:06:50 2015 +0200
+
+--- a/magic/Magdir/python
++++ b/magic/Magdir/python
+@@ -26,7 +26,7 @@
+ 0	belong		0xee0c0d0a	python 3.4 byte-compiled
+ 
+ 0	search/1/w	#!\ /usr/bin/python	Python script text executable
+-!:strength + 10
++!:strength + 13
+ !:mime text/x-python
+ 0	search/1/w	#!\ /usr/local/bin/python	Python script text executable
+ !:strength + 10

+ 1 - 0
debian/patches/series

@@ -12,3 +12,4 @@
 cherry-pick.FILE5_24-22-g27b4e34.parameter-1.patch
 cherry-pick.FILE5_24-23-g4ddb783.parameter-2.patch
 cherry-pick.FILE5_24-26-ge92eb5c.python-mime.patch
+amend.FILE5_24-26-ge92eb5c.python-mime.patch