[827] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[D-O-H] r822 - trunk/owl/perl/lib/BarnOwl

daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:10:08 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
To: dirty-owl-hackers@mit.edu
From: nelhage@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Thu, 10 Jan 2008 01:43:12 -0500 (EST)

Author: nelhage
Date: 2008-01-10 01:43:11 -0500 (Thu, 10 Jan 2008)
New Revision: 822

Modified:
   trunk/owl/perl/lib/BarnOwl/ModuleLoader.pm
Log:
Make :reload-modules work correctly with PARs


Modified: trunk/owl/perl/lib/BarnOwl/ModuleLoader.pm
===================================================================
--- trunk/owl/perl/lib/BarnOwl/ModuleLoader.pm	2008-01-10 06:28:59 UTC (rev 821)
+++ trunk/owl/perl/lib/BarnOwl/ModuleLoader.pm	2008-01-10 06:43:11 UTC (rev 822)
@@ -8,6 +8,7 @@
 use PAR (BarnOwl::get_config_dir() . "/modules/*.par");
 
 sub load_all {
+    PAR::reload_libs();
     my %modules;
     my @modules;
 
@@ -35,7 +36,7 @@
     }
     for my $class (keys %modules) {
         if(!defined eval "use BarnOwl::Module::$class") {
-            BarnOwl::error("Unable to load module $class: $!") if $!;
+            # BarnOwl::error("Unable to load module $class: $!") if $!;
             BarnOwl::error("Unable to load module $class: $@") if $@;
         }
     }


home help back first fref pref prev next nref lref last post