--- loncom/lonnet/perl/lonnet.pm 2003/11/10 20:27:32 1.443 +++ loncom/lonnet/perl/lonnet.pm 2003/11/10 23:57:49 1.446 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.443 2003/11/10 20:27:32 albertel Exp $ +# $Id: lonnet.pm,v 1.446 2003/11/10 23:57:49 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -247,10 +247,10 @@ sub transfer_profile_to_env { } } } + $ENV{'user.environment'} = "$lonidsdir/$handle.id"; foreach my $expired_key (keys(%Remove)) { &delenv($expired_key); } - $ENV{'user.environment'} = "$lonidsdir/$handle.id"; } # ---------------------------------------------------------- Append Environment @@ -895,7 +895,7 @@ EVALBLOCK } } else { if (-e $filename) { - &logthis("Unable to tie hash (save cache item): $name"); + &logthis("Unable to tie hash (save cache item): $name ($!)"); unlink($filename); } } @@ -939,7 +939,7 @@ EVALBLOCK } } else { if (-e $filename) { - &logthis("Unable to tie hash (load cache item): $name"); + &logthis("Unable to tie hash (load cache item): $name ($!)"); unlink($filename); } } @@ -4069,7 +4069,8 @@ sub fixversion { &GDBM_READER(),0640)) { if ($bighash{'version_'.$uri}) { my $version=$bighash{'version_'.$uri}; - unless ($version eq 'mostrecent') { + unless (($version eq 'mostrecent') || + ($version==&getversion($uri))) { $uri=~s/\.(\w+)$/\.$version\.$1/; } }