- Timestamp:
- Mar 29, 2010, 3:55:49 PM (16 years ago)
- Location:
- branches/eam_branches/20100225
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
DataStore/scripts/dsgetfileset (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20100225
- Property svn:mergeinfo changed
-
branches/eam_branches/20100225/DataStore/scripts/dsgetfileset
r26158 r27517 17 17 use File::Basename qw( basename ); 18 18 19 my ($uri, $outdir, $timeout, $ no_proxy, $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, 25 26 'no-proxy' => \$no_proxy, 26 27 'verbose|v' => \$verbose, … … 36 37 $timeout ||= 30; 37 38 $no_proxy = 0 if !defined $no_proxy; 39 40 if (!($uri =~ /\/index\.txt$/)) { 41 $uri .= '/index.txt' 42 } 38 43 39 44 my $response = DataStore::FileSet->new( uri => $uri )->request( … … 75 80 my $bytes = $fs->bytes; 76 81 77 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; 78 84 print "$command\n" if $verbose; 79 85 my $rc = system $command;
Note:
See TracChangeset
for help on using the changeset viewer.
