diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2016-09-08 19:46:40 +0000 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-21 12:14:32 +0200 |
commit | fbbc0f0c766ce42c3f2b487e2154603ee5b7e007 (patch) | |
tree | 35d2b1bff79c4e2c0af74caae2eda6b8075e51fd /community/syslog-summary/02-new-python-magic.patch | |
parent | febfba2695645c8b0c49f23e9ea59aac5bf405e9 (diff) | |
download | aports-fbbc0f0c766ce42c3f2b487e2154603ee5b7e007.tar.bz2 aports-fbbc0f0c766ce42c3f2b487e2154603ee5b7e007.tar.xz |
community/syslog-summary: new aport
https://github.com/dpaleino/syslog-summary
Summarize the contents of a syslog log file / useful with logcheck
Patched to support:
- new thread safe version of python-magic
- socklog
Diffstat (limited to 'community/syslog-summary/02-new-python-magic.patch')
-rw-r--r-- | community/syslog-summary/02-new-python-magic.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/community/syslog-summary/02-new-python-magic.patch b/community/syslog-summary/02-new-python-magic.patch new file mode 100644 index 0000000000..5e0f231af5 --- /dev/null +++ b/community/syslog-summary/02-new-python-magic.patch @@ -0,0 +1,16 @@ +## use the new thread safe version of python-magic not the original ## + +--- syslog-summary-1.14/syslog-summary ++++ syslog-summary-1.14/syslog-summary.new +@@ -130,9 +130,8 @@ + """Returns True if the filename is a gzipped compressed file""" + try: + import magic +- ms = magic.open(magic.MAGIC_NONE) +- ms.load() +- if re.search("^gzip compressed data.*", ms.file(filename)): ++ ms = magic.from_file(filename) ++ if re.search("^gzip compressed data.*", ms): + return True + else: + return False |