1 # Copyright 2002-2007 Interchange Development Group and others
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version. See the LICENSE file for details.
8 # $Id: newer.coretag,v 1.4 2007-03-30 23:40:54 pajamian Exp $
10 UserTag newer Order source target
11 UserTag newer Version $Revision: 1.4 $
12 UserTag newer Routine <<EOR
14 my ($source, $file2) = @_;
16 if(! $file2 and $source !~ /\./) {
20 elsif($Global::DB_File) {
26 $file2 = $Vend::Cfg->{Database}{$source}{'file'}
28 $file1 = $Vend::Cfg->{ProductDir} . '/' . $file1
29 unless $file1 =~ m:/:;
30 $file2 = $Vend::Cfg->{ProductDir} . '/' . $file2
31 unless $file2 =~ m:/:;
33 my $time1 = (stat($file1))[9]
35 my $time2 = (stat($file2))[9];
36 return 1 if $time1 > $time2;