Update of /cvsroot/fink/scripts/10.4-update
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv19632
Modified Files:
update.pl
Log Message:
actually remove the directory!
Index: update.pl
===================================================================
RCS file: /cvsroot/fink/scripts/10.4-update/update.pl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- update.pl 14 Jun 2006 20:15:32 -0000 1.8
+++ update.pl 14 Jun 2006 20:45:44 -0000 1.9
@@ -91,11 +91,14 @@
## remove
if (-d "$basepath/fink.old") {
- if (!&Fink::CLI::prompt_boolean("You have a $basepath/fink.old
directory, which will interfere with the running of this script. Is it OK if
the script removes it?")) {
+ if (&Fink::CLI::prompt_boolean("You have a $basepath/fink.old
directory, which will interfere with the running of this script. Is it OK if
the script removes it?")) {
+ &Fink::Services::execute("sudo rm -R $basepath/fink.old");
+ } else {
die "No? Then please remove or rename it manually, and run the
script again.\n";
}
}
+
### update fink and fink-mirrors, unless already done (as signalled by the
### FINK-UPDATED environment variable)
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits