From 0445df2ea1a6a2801ce2aa4bf767eeb2ea51bb64 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 6 Oct 2011 17:37:57 +0200 Subject: correct filepermissions in debug zips --- module/PluginThread.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'module') diff --git a/module/PluginThread.py b/module/PluginThread.py index dcbe88c71..967762999 100644 --- a/module/PluginThread.py +++ b/module/PluginThread.py @@ -22,7 +22,7 @@ from Queue import Queue from threading import Thread from os import listdir, stat from os.path import join -from time import sleep, time, strftime +from time import sleep, time, strftime, gmtime from traceback import print_exc, format_exc from pprint import pformat from sys import exc_info, exc_clear @@ -67,7 +67,10 @@ class PluginThread(Thread): except: pass - zip.writestr(save_join(pyfile.pluginname, "debug_Report.txt"), dump) + info = zipfile.ZipInfo(save_join(pyfile.pluginname, "debug_Report.txt"), gmtime()) + info.external_attr = 0644 << 16L # change permissions + + zip.writestr(info, dump) zip.close() if not stat(dump_name).st_size: -- cgit v1.2.3