summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2011-01-14 12:54:02 +0000
committerOlivier Blin <blino@mageia.org>2011-01-14 12:54:02 +0000
commitb489c78dcd2cb0bbc6daacda826a90dd3b025290 (patch)
tree4f5f9d268a545890f284de6cda746af1a81bcfba /index.php
parentdb0ad0883a22ecbdfd2cbebdeaff513696df2fd7 (diff)
downloadpkgsubmit-b489c78dcd2cb0bbc6daacda826a90dd3b025290.tar
pkgsubmit-b489c78dcd2cb0bbc6daacda826a90dd3b025290.tar.gz
pkgsubmit-b489c78dcd2cb0bbc6daacda826a90dd3b025290.tar.bz2
pkgsubmit-b489c78dcd2cb0bbc6daacda826a90dd3b025290.tar.xz
pkgsubmit-b489c78dcd2cb0bbc6daacda826a90dd3b025290.zip
fix matching files for last 2 days only
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 8e17d1b..3eeb40f 100644
--- a/index.php
+++ b/index.php
@@ -32,7 +32,7 @@ shell_exec('grep -v mga src.txt > src.mdv.txt');
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);