Changeset 27838 for branches/tap_branches/DataStore/scripts/dsgetfileset
- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
DataStore/scripts/dsgetfileset (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/DataStore/scripts/dsgetfileset
r25574 r27838 17 17 use File::Basename qw( basename ); 18 18 19 my ($uri, $outdir, $timeout, $ verbose);19 my ($uri, $outdir, $timeout, $skip_checks, $no_proxy, $verbose); 20 20 21 21 GetOptions( … … 23 23 'outdir|o=s' => \$outdir, 24 24 'timeout|t=s' => \$timeout, 25 'skip-checks' => \$skip_checks, 26 'no-proxy' => \$no_proxy, 25 27 'verbose|v' => \$verbose, 26 28 ) or pod2usage( 2 ); … … 34 36 # default http request timeout is 30s 35 37 $timeout ||= 30; 38 $no_proxy = 0 if !defined $no_proxy; 39 40 if (!($uri =~ /\/index\.txt$/)) { 41 $uri .= '/index.txt' 42 } 36 43 37 44 my $response = DataStore::FileSet->new( uri => $uri )->request( 38 45 ua_args => { timeout => $timeout }, 46 no_proxy => $no_proxy, 39 47 ); 40 48 … … 72 80 my $bytes = $fs->bytes; 73 81 74 my $command = "dsget --uri $uri --filename $outfile --md5 $md5 --bytes $bytes --timeout $timeout"; 82 my $command = "dsget --uri $uri --filename $outfile --timeout $timeout"; 83 $command .= " --md5 $md5 --bytes $bytes" if !$skip_checks; 75 84 print "$command\n" if $verbose; 76 85 my $rc = system $command; … … 117 126 Optional. 118 127 128 =item * --no-proxy 129 130 Do not load proxy environment variables. 131 132 Optional. 133 119 134 =back 120 135
Note:
See TracChangeset
for help on using the changeset viewer.
