[svn:parrot] r36808 - trunk/lib/Parrot/Pmc2c
allison at svn.parrot.org
allison at svn.parrot.org
Tue Feb 17 08:11:57 UTC 2009
Author: allison
Date: Tue Feb 17 08:11:57 2009
New Revision: 36808
URL: https://trac.parrot.org/parrot/changeset/36808
Log:
[install] In an installed Parrot, the .pmc file and the .dump file
generated from it may have the same timestamp. Be smarter in deciding
whether to regenerate a .dump file by checking if its timestamp is
greater than *or equal to* the timestamp of the .pmc file.
Modified:
trunk/lib/Parrot/Pmc2c/PMC.pm
Modified: trunk/lib/Parrot/Pmc2c/PMC.pm
==============================================================================
--- trunk/lib/Parrot/Pmc2c/PMC.pm Tue Feb 17 05:12:01 2009 (r36807)
+++ trunk/lib/Parrot/Pmc2c/PMC.pm Tue Feb 17 08:11:57 2009 (r36808)
@@ -430,7 +430,7 @@
return 0 unless -e $dumpfile;
my $pmcfile = $self->filename('.pmc');
- return ( stat $dumpfile )[9] > ( stat $pmcfile )[9];
+ return ( stat $dumpfile )[9] >= ( stat $pmcfile )[9];
}
1;
More information about the parrot-commits
mailing list