summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-06 17:37:57 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-06 17:37:57 +0200
commit0445df2ea1a6a2801ce2aa4bf767eeb2ea51bb64 (patch)
tree35f380ffb2ff448d96d5ed2ed52cf5ca318c5d7b /module
parentmediafire.com plugin fix (diff)
downloadpyload-0445df2ea1a6a2801ce2aa4bf767eeb2ea51bb64.tar.xz
correct filepermissions in debug zips
Diffstat (limited to 'module')
-rw-r--r--module/PluginThread.py7
1 files changed, 5 insertions, 2 deletions
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: