Update of /cvsroot/fink/fink/perlmod/Fink
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv15945

Modified Files:
        ChangeLog Package.pm 
Log Message:
Look for *any* change to cached-.info's mtime, not just becoming
newer. Should solve fink not noticing when rsync brings later %v-%r
than local copy (but older on server than local copy was because our
rsync preserves timestamps)


Index: Package.pm
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/Package.pm,v
retrieving revision 1.191
retrieving revision 1.192
diff -u -d -r1.191 -r1.192
--- Package.pm  8 Jun 2010 22:41:13 -0000       1.191
+++ Package.pm  12 Nov 2010 04:28:02 -0000      1.192
@@ -865,7 +865,7 @@
                                $load = 1;
                        } elsif (!$noauto) {
                                $load = 1 if !-f $fidx->{cache}
-                                       || $fidx->{info_mtime} < 
(stat($info))[9];
+                                       || $fidx->{info_mtime} != 
(stat($info))[9];
                        }
                }
                

Index: ChangeLog
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/ChangeLog,v
retrieving revision 1.1685
retrieving revision 1.1686
diff -u -d -r1.1685 -r1.1686
--- ChangeLog   12 Nov 2010 00:49:07 -0000      1.1685
+++ ChangeLog   12 Nov 2010 04:28:02 -0000      1.1686
@@ -1,3 +1,8 @@
+2010-11-11  Daniel Macks  <[email protected]>
+
+       * Package.pm: Also re-cache .info whose timestamp has gone
+       backwards (e.g., overwriting local mod with older/archived copy)
+
 2010-11-11  Dave Morrison  <[email protected]>
 
        * Bootstrap.pm: Recognize new hardware too (11" MB Air)


------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to