Update of /cvsroot/fink/scripts/10.4-update
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv6355

Modified Files:
        ChangeLog update.pl 
Log Message:
initial message for users


Index: update.pl
===================================================================
RCS file: /cvsroot/fink/scripts/10.4-update/update.pl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- update.pl   14 Jun 2006 18:28:48 -0000      1.5
+++ update.pl   14 Jun 2006 19:13:15 -0000      1.6
@@ -51,12 +51,43 @@
        exit 0;
 }
 
+### initial message for users, if running for the first time (i.e., before
+### setting the FINK_UPDATED environment variable)
+
+if (!(exists $ENV{FINK_UPDATED})) {
+
+       print "\n";
+
+       &Fink::CLI::print_breaking("This script is designed to update an 
existing fink installation from the 10.3 or 10.4-transitional distributions to 
the 10.4 distribution, on PowerPC hardware only.  This update process is not 
easy or seamless, and many users will prefer to erase their old installation 
and reinstall Fink anew, using the 0.8.1 installer.");
+
+       print "\n";
+
+       &Fink::CLI::print_breaking("You must be connected to the internet while 
running this script, as fink will be downloading package descriptions and 
source files periodically during the update.");
+
+       print "\n";
+
+       &Fink::CLI::print_breaking("This script will *not* run unattended: you 
will need to respond to various questions along the way.");
+
+       print "\n";
+
+       &Fink::CLI::print_breaking("If the script exits with an error (or if 
you interrupt it), IT IS VERY IMPORTANT that you repeatedly run the commands 
\"sudo apt-get dist-upgrade\" followed by \"fink update-all\" until no further 
errors are encountered.  If you fail to do this, you will be left with a 
partially updated fink installation which may lead to future, hard-to-debug, 
errors.");
+
+       print "\n";
+
+       &Fink::CLI::print_breaking("For advice about what to do about errors 
which this script may generate, consult the FAQ or ask in the \#fink IRC 
channel on irc.freenode.net .");
+
+       print "\n";
+
+       die "OK, good luck.\n" unless &Fink::CLI::prompt_boolean("Are you sure 
you wish to continue?");
+
+       print "\n";
+}
+
 ### which distribution are we running?
 
 my ($notlocated, $basepath) = &Fink::Bootstrap::locate_Fink($ARGV[0]);
 die "I am unable to determine the location of your fink installation (such as 
/sw).  Please start the script again, giving the location as a parameter on the 
command line.\n" if ($notlocated);
-## only confirm the choice with the user the first time through (i.e., before
-## setting the FINK_UPDATED environment variable
+## only confirm the choice with the user the first time through
 if (!(exists $ENV{FINK_UPDATED})) {
        die "In that case, please start the script again, giving the correct 
location as a parameter on the command line.\n" unless 
&Fink::CLI::prompt_boolean("I have located your fink installation in $basepath. 
 Is this the one which you wish to update?");
 }

Index: ChangeLog
===================================================================
RCS file: /cvsroot/fink/scripts/10.4-update/ChangeLog,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- ChangeLog   14 Jun 2006 18:44:58 -0000      1.5
+++ ChangeLog   14 Jun 2006 19:13:15 -0000      1.6
@@ -2,7 +2,7 @@
 
        * update.pl: don't use 'fink cleanup', but make sure that stale deb
        symlinks are removed; detect $basepath and $distribution automatically;
-       better interaction with user
+       better interaction with user; initial message for users
        * README: new file
 
 2006-06-13  Dave Morrison  <[EMAIL PROTECTED]>



_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to