Update of /cvsroot/fink/fink/perlmod/Fink
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23229
Modified Files:
Tag: branch_0_24
ChangeLog Configure.pm
Log Message:
Optimize check for obsolete mirrors.
Index: Configure.pm
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/Configure.pm,v
retrieving revision 1.38.2.2
retrieving revision 1.38.2.3
diff -u -d -r1.38.2.2 -r1.38.2.3
--- Configure.pm 16 Apr 2005 17:23:54 -0000 1.38.2.2
+++ Configure.pm 18 Apr 2005 03:05:48 -0000 1.38.2.3
@@ -269,10 +269,13 @@
$current_value = $config->param("Mirror-$mirrorname");
$is_obsolete = 1;
$list_of_mirrors =
&read_properties_multival("$libpath/mirror/$mirrorname");
+ delete $list_of_mirrors->{timestamp};
+ MIRROR_GEOG_LOOP:
foreach $property_value (values %{$list_of_mirrors}) {
foreach $mirror_item (@{$property_value}) {
if ($current_value eq $mirror_item) {
$is_obsolete = 0;
+ last MIRROR_GEOG_LOOP;
}
}
}
Index: ChangeLog
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/ChangeLog,v
retrieving revision 1.873.2.17
retrieving revision 1.873.2.18
diff -u -d -r1.873.2.17 -r1.873.2.18
--- ChangeLog 16 Apr 2005 17:21:14 -0000 1.873.2.17
+++ ChangeLog 18 Apr 2005 03:05:47 -0000 1.873.2.18
@@ -1,7 +1,12 @@
+2005-04-17 Daniel Macks <[EMAIL PROTECTED]>
+
+ * Configure.pm: choose_mirrors stops searching for current as soon
+ as found, and ignores Timestamp field in mirror files.
+
2005-04-16 Dave Morrison <[EMAIL PROTECTED]>
* Configure.pm: choose_mirrors now examines the current choices
- for outdated entires, and prompts the user about this; the default
+ for outdated entries, and prompts the user about this; the default
values (chosen after a timeout when running in the fink-mirrors
postinstall script) will replace any outdated choices of the user
by currently acceptable choices
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits