IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 9, 2010, 3:29:56 PM (16 years ago)
Author:
bills
Message:

add option for debugging --skip-checks to omit the md5sum and filesize checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/scripts/dsgetfileset

    r27208 r27229  
    1717use File::Basename qw( basename );
    1818
    19 my ($uri, $outdir, $timeout, $no_proxy, $verbose);
     19my ($uri, $outdir, $timeout, $skip_checks, $no_proxy, $verbose);
    2020
    2121GetOptions(
     
    2323    'outdir|o=s'        => \$outdir,
    2424    'timeout|t=s'       => \$timeout,
     25    'skip-checks'       => \$skip_checks,
    2526    'no-proxy'          => \$no_proxy,
    2627    'verbose|v'         => \$verbose,
     
    7980    my $bytes = $fs->bytes;
    8081
    81     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;
    8284    print "$command\n" if $verbose;
    8385    my $rc = system $command;
Note: See TracChangeset for help on using the changeset viewer.