[Mageia-sysadm] [297] fix matching files for last 2 days only

root at mageia.org root at mageia.org
Fri Jan 14 13:54:03 CET 2011


Revision: 297
Author:   blino
Date:     2011-01-14 13:54:02 +0100 (Fri, 14 Jan 2011)
Log Message:
-----------
fix matching files for last 2 days only

Modified Paths:
--------------
    build_system/web/index.php

Modified: build_system/web/index.php
===================================================================
--- build_system/web/index.php	2011-01-14 12:52:31 UTC (rev 296)
+++ build_system/web/index.php	2011-01-14 12:54:02 UTC (rev 297)
@@ -32,7 +32,7 @@
 
 chdir($upload_dir);
 
-$all_files = shell_exec("find \( -name '*.rpm' -o -name '*.src.rpm.info' -o -name '*.youri' -o -name '*.lock' -o -name '*.done' \) ! -ctime $max_modified");
+$all_files = shell_exec("find \( -name '*.rpm' -o -name '*.src.rpm.info' -o -name '*.youri' -o -name '*.lock' -o -name '*.done' \) -ctime -$max_modified");
 
 preg_match_all("!^\./(\w+)/((\w+)/(\w+)/(\w+)/(\d+)\.(\w+)\.(\w+)\.(\d+))_?(.+)(\.src\.rpm(?:\.info)?|\.youri|\.lock|\.done)$!m", $all_files, $matches, PREG_SET_ORDER);
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110114/957bb537/attachment.html>


More information about the Mageia-sysadm mailing list