Update of /cvsroot/fink/fink/perlmod/Fink/SelfUpdate
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv10961/SelfUpdate

Modified Files:
      Tag: branch_0_29
        rsync.pm 
Log Message:
Fix rsync server TIMESTAMP validation.
Support Growl beta versions.


Index: rsync.pm
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/SelfUpdate/rsync.pm,v
retrieving revision 1.9
retrieving revision 1.9.2.1
diff -u -d -r1.9 -r1.9.2.1
--- rsync.pm    7 Mar 2009 16:25:04 -0000       1.9
+++ rsync.pm    27 Sep 2009 02:42:17 -0000      1.9.2.1
@@ -140,7 +140,7 @@
                close $ts_FH;
                chomp $newts;
                # Make sure the timestamp only contains digits
-               if ($oldts =~ /\D/) {
+               if ($newts =~ /\D/) {
                        unlink("$descdir/TIMESTAMP.tmp");
                        die "The timestamp file fetched from $rsynchost 
contains non-numeric characters.  This is illegal.  Refusing to continue.\n";
                }
@@ -163,12 +163,6 @@
                }
                my @sb = stat("$descdir/$dist");
        
-               # We need to remove the CVS directories, since what we're
-               # going to put there isn't from cvs.  Leaving those directories
-               # there will thoroughly confuse things if someone later does 
-               # selfupdate-cvs.  However, don't actually do the removal until
-               # we've tried to put something there.
-               
                $rsynchost =~ s/\/*$//;
                $dist      =~ s/\/*$//;
                


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to