The problem is some rar archives preserve the modification date of a file.
I have solved this problem using this patch. Can we have something similar included?
Code: Select all
--- /usr/share/sabnzbdplus/sabnzbd/postproc.py_orig 2010-11-15 21:54:48.000000000 +0100
+++ /usr/share/sabnzbdplus/sabnzbd/postproc.py 2011-02-02 14:51:54.000000000 +0100
@@ -318,6 +318,7 @@
else:
nzo.set_unpack_info('Unpack',T('msg-noPostProc'))
+
## Move any (left-over) files to destination
nzo.set_status('Moving')
nzo.set_action_line(T('msg-moving'), '...')
@@ -337,6 +338,12 @@
logging.info("Traceback: ", exc_info = True)
+ ##Touch all files
+ for root, dirs, files in os.walk(tmp_workdir_complete):
+ for _file in files:
+ logging.info("Touching %s", os.path.join(root, _file))
+ os.utime(os.path.join(root, _file), None)
+
## Set permissions right
if not sabnzbd.WIN32:
perm_script(tmp_workdir_complete, cfg.UMASK.get())

