[Collab-qa-commits] r807 - svnbuildstat/trunk/script
goneri at alioth.debian.org
goneri at alioth.debian.org
Sun Apr 20 16:32:08 UTC 2008
Author: goneri
Date: 2008-04-20 16:32:07 +0000 (Sun, 20 Apr 2008)
New Revision: 807
Modified:
svnbuildstat/trunk/script/svnbuildstat_update-db.pl
Log:
fix the way I compoare the lastcheck and the lastchange
Modified: svnbuildstat/trunk/script/svnbuildstat_update-db.pl
===================================================================
--- svnbuildstat/trunk/script/svnbuildstat_update-db.pl 2008-04-20 00:06:59 UTC (rev 806)
+++ svnbuildstat/trunk/script/svnbuildstat_update-db.pl 2008-04-20 16:32:07 UTC (rev 807)
@@ -69,7 +69,11 @@
my $lastchange = DateTime->from_epoch(epoch => findLastChangeDate($dirname));
# no change since the last check?
# I turn off this to for the fullscan of the repository
- return if $lastcheck && DateTime->compare($lastcheck, $lastchange);
+ if ($lastcheck && DateTime->compare($lastcheck, $lastchange) == 1) {
+ print ("No change since the lastcheck\n");
+ debug ("No change since the lastcheck");
+ return;
+ }
my $subdir = $dirname; # subdir is NOT NULL in DB so I need a last the '/'
$subdir =~ s/^$localcache//;
More information about the Collab-qa-commits
mailing list