Skip to content

Commit 09df777

Browse files
committed
add a timeout when checking host availability
1 parent 9e95d1f commit 09df777

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

conda/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package:
22
name: squeezemeta
3-
version: '1.5.0post1'
3+
version: '1.5.0post2'
44

55
source:
66
git_url: https://github.com/jtamames/squeezemeta.git

lib/install_utils/get_host.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sub get_host {
55
my @hosts = ("http://silvani.cnb.csic.es", "http://andes.cnb.csic.es");
66
my @goodhosts;
77
for my $host (@hosts) {
8-
my $ecode = system("wget -O/dev/null -q $host/SqueezeMeta/SQMhere");
8+
my $ecode = system("wget -T10 -t1 -O/dev/null -q $host/SqueezeMeta/SQMhere");
99
if(!$ecode) { push(@goodhosts, $host); }
1010
}
1111
if(!@goodhosts) { die "No host could be reached!" }

utils/install_utils/configure_nodb.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Cwd 'abs_path';
77
my $databasedir=abs_path($ARGV[0]);
88

9-
if(!$databasedir) { die "Usage: perl install_nodb.pl <database dir>\n"; }
9+
if(!$databasedir) { die "Usage: perl configure_nodb.pl <database dir>\n"; }
1010
print("Make sure that $databasedir contains all the database files (nr.dmnd, etc...)\n\n");
1111

1212

utils/install_utils/configure_nodb_alt.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Cwd 'abs_path';
77
my $databasedir=abs_path($ARGV[0]);
88

9-
if(!$databasedir) { die "Usage: perl install_nodb.pl <database dir>\n"; }
9+
if(!$databasedir) { die "Usage: perl configure_nodb_alt.pl <database dir>\n"; }
1010
print("Make sure that $databasedir contains all the database files (nr.dmnd, etc...)\n\n");
1111

1212

0 commit comments

Comments
 (0)