>>>>> "Max" == Max Horn <[EMAIL PROTECTED]> writes:

Max> would you mind extending the patch so that it works for fetch-all,
Max> too, then I could put it into CVS.

Untested, but I'm usually pretty good at perl code... :)

diff -u /sw/lib/perl5/Fink/Engine.pm-DIST /sw/lib/perl5/Fink/Engine.pm 
--- /sw/lib/perl5/Fink/Engine.pm-DIST   Tue Dec 11 07:53:39 2001 
+++ /sw/lib/perl5/Fink/Engine.pm        Tue Feb 19 16:18:33 2002 
@@ -432,7 +432,10 @@ 
     $version = &latest_version($package->list_versions()); 
     $vo = $package->get_version($version); 
     if (defined $vo) { 
-      $vo->phase_fetch(); 
+      eval { 
+       $vo->phase_fetch(); 
+      }; 
+      warn "$@" if $@;         # turn fatal exceptions into warnings 
     } 
   } 
 } 
@@ -445,7 +448,10 @@ 
     $version = &latest_version($package->list_versions()); 
     $vo = $package->get_version($version); 
     if (defined $vo) { 
-      $vo->phase_fetch(1); 
+      eval { 
+       $vo->phase_fetch(1); 
+      }; 
+      warn "$@" if $@;         # turn fatal exceptions into warnings 
     } 
   } 
 } 


-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to