Update of /cvsroot/fink/fink/perlmod/Fink
In directory sc8-pr-cvs17:/tmp/cvs-serv8284

Modified Files:
        ChangeLog SelfUpdate.pm 
Log Message:
* SelfUpdate.pm: Try to remove old metadata first before switching
to new update method, since the first step might fail, if there 
is a left over fink.old directory.
* SelfUpdate/CVS.pm: Check for remaining fink.old directory first
before removing metadata. Allow for :local: cvs access. Add more
details about merging old trees. 
And fix hardlinking: the perl 'link' function returns true on
success.


Index: SelfUpdate.pm
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/SelfUpdate.pm,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -d -r1.124 -r1.125
--- SelfUpdate.pm       18 May 2007 02:46:24 -0000      1.124
+++ SelfUpdate.pm       15 Oct 2007 21:44:09 -0000      1.125
@@ -223,16 +223,16 @@
        $subclass_use->system_check() or die "Selfupdate method '$method' 
cannot be used\n";
 
        if ($method ne $prev_method) {
-               # save new selection (explicit change or being set for first 
time)
-               &print_breaking("fink is setting your default update method to 
$method\n");
-               $config->set_param("SelfUpdateMethod", $method);
-               $config->save();
-
                # clear remnants of any methods other than one to be used
                foreach my $subclass (@avail_subclasses) {
                        next if $subclass eq $subclass_use;
                        $subclass->clear_metadata();
                }
+
+               # save new selection (explicit change or being set for first 
time)
+               &print_breaking("fink is setting your default update method to 
$method\n");
+               $config->set_param("SelfUpdateMethod", $method);
+               $config->save();
        }
 
        # Let's do this thang!

Index: ChangeLog
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/ChangeLog,v
retrieving revision 1.1503
retrieving revision 1.1504
diff -u -d -r1.1503 -r1.1504
--- ChangeLog   15 Oct 2007 21:34:49 -0000      1.1503
+++ ChangeLog   15 Oct 2007 21:44:09 -0000      1.1504
@@ -1,5 +1,16 @@
 2007-10-15  Christian Schaffner  <[EMAIL PROTECTED]>
 
+       * SelfUpdate.pm: Try to remove old metadata first before switching
+       to new update method, since the first step might fail, if there 
+       is a left over fink.old directory.
+       * SelfUpdate/CVS.pm: Check for remaining fink.old directory first
+       before removing metadata. Allow for :local: cvs access. Add more
+       details about merging old trees. 
+       And fix hardlinking: the perl 'link' function returns true on
+       success.
+
+2007-10-15  Christian Schaffner  <[EMAIL PROTECTED]>
+
        * SelfUpdate/Point.pm: Fix typo, and show warning message if 
        trying to change to point from any other method.
 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to