Additions to the Messages file for Spanish Language from Jesus ea1dav
[spider.git] / cmd / dbshow.pl
index 1c3b0139e2529017bc4909b104633914e4aebbdb..1835ed396afe3469306b209c387acc376645483c 100644 (file)
@@ -24,12 +24,13 @@ foreach  $n (@db) {
        if ($db->remote) {
 
                # remote databases
-               unless (DXCluster->get_exact($db->remote) || DXChannel->get($db->remote)) {
+               unless (Route::Node::get($db->remote) || DXChannel->get($db->remote)) {
                        push @out, $self->msg('db4', uc $name, $db->remote);
                        last;
                }
                
                push @out, $self->msg('db11', $db->remote);
+               push @f, " " unless @f;
                for (@f) {
                        my $n = DXDb::newstream($self->call);
                        DXProt::route(undef, $db->remote, DXProt::pc44($main::mycall, $db->remote, $n, uc $db->name,uc $_, $self->call));
@@ -40,11 +41,11 @@ foreach  $n (@db) {
                # local databases can chain to remote ones
                my $count;
                push @out, $db->print('pre');
-               push @out, "@f";
+#              push @out, "@f";
                for (@f) {
-                       push @out, $db->name . " $_";
-                       my $value = $db->getkey($_);
-                       push @out, $db->name . ": $_ : $value";
+#                      push @out, $db->name . " $_";
+                       my $value = $db->getkey($_) || "";
+                       push @out, $db->name . ": $_ :";
                        if ($value) {
                                push @out, split /\n/, $value;
                                $count++;