[LON-CAPA-cvs] cvs: loncom(version_1_0_0) /lonnet/perl lonnet.pm

albertel lon-capa-cvs@mail.lon-capa.org
Sun, 17 Aug 2003 18:57:53 -0000


albertel		Sun Aug 17 14:57:53 2003 EDT

  Modified files:              (Branch: version_1_0_0)
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - backport 1.401
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.398 loncom/lonnet/perl/lonnet.pm:1.398.2.1
--- loncom/lonnet/perl/lonnet.pm:1.398	Wed Aug  6 13:00:30 2003
+++ loncom/lonnet/perl/lonnet.pm	Sun Aug 17 14:57:53 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.398 2003/08/06 17:00:30 albertel Exp $
+# $Id: lonnet.pm,v 1.398.2.1 2003/08/17 18:57:53 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3507,14 +3507,15 @@
         if ($liburi) {
 	    $liburi=&declutter($liburi);
             $filename=$liburi;
-        }
+        } else {
+	    delete($metacache{$uri.':packages'});
+	}
         my %metathesekeys=();
         unless ($filename=~/\.meta$/) { $filename.='.meta'; }
 	my $metastring=&getfile(&filelocation('',&clutter($filename)));
         my $parser=HTML::LCParser->new(\$metastring);
         my $token;
         undef %metathesekeys;
-	delete($metacache{$uri.':packages'});
         while ($token=$parser->get_token) {
 	    if ($token->[0] eq 'S') {
 		if (defined($token->[2]->{'package'})) {