diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-06 17:37:57 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-06 17:37:57 +0200 |
commit | 0445df2ea1a6a2801ce2aa4bf767eeb2ea51bb64 (patch) | |
tree | 35f380ffb2ff448d96d5ed2ed52cf5ca318c5d7b | |
parent | mediafire.com plugin fix (diff) | |
download | pyload-0445df2ea1a6a2801ce2aa4bf767eeb2ea51bb64.tar.xz |
correct filepermissions in debug zips
-rw-r--r-- | module/PluginThread.py | 7 |
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: |