[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /lonnet/perl lonnet.pm
raeburn
raeburn at source.lon-capa.org
Thu Jun 12 23:15:32 EDT 2014
raeburn Fri Jun 13 03:15:32 2014 EDT
Modified files: (Branch: version_2_11_X)
/loncom/lonnet/perl lonnet.pm
Log:
- For 2.11
- Backport remaining part of 1.1180
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1172.2.49 loncom/lonnet/perl/lonnet.pm:1.1172.2.50
--- loncom/lonnet/perl/lonnet.pm:1.1172.2.49 Thu May 29 13:23:50 2014
+++ loncom/lonnet/perl/lonnet.pm Fri Jun 13 03:15:31 2014
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1172.2.49 2014/05/29 13:23:50 raeburn Exp $
+# $Id: lonnet.pm,v 1.1172.2.50 2014/06/13 03:15:31 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -5763,7 +5763,15 @@
$sdom = $env{'user.domain'} if (! defined($sdom));
$sname = $env{'user.name'} if (! defined($sname));
my $uhome = &homeserver($sname,$sdom);
- my $rep=reply('currentdump:'.$sdom.':'.$sname.':'.$courseid,$uhome);
+ my $rep;
+
+ if (grep { $_ eq $uhome } current_machine_ids()) {
+ $rep = LONCAPA::Lond::dump_profile_database(join(":", ($sdom, $sname,
+ $courseid)));
+ } else {
+ $rep = reply('currentdump:'.$sdom.':'.$sname.':'.$courseid,$uhome);
+ }
+
return if ($rep =~ /^(error:|no_such_host)/);
#
my %returnhash=();
More information about the LON-CAPA-cvs
mailing list