IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9827


Ignore:
Timestamp:
Nov 1, 2006, 5:15:08 PM (20 years ago)
Author:
jhoblitt
Message:

fix dsleech to handle valid but empty filesets

Location:
trunk/DataStore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/Changes

    r8730 r9827  
    11Revision history for Perl module DataStore
     2
     30.06
     4    - fix dsleech to handle valid but empty filesets
    25
    360.05 Fri Sep  1 11:28:13 HST 2006
  • trunk/DataStore/scripts/dsleech

    r8727 r9827  
    33# Copyright (C) 2006  Joshua Hoblitt
    44#
    5 # $Id: dsleech,v 1.3 2006-09-01 21:18:30 jhoblitt Exp $
     5# $Id: dsleech,v 1.4 2006-11-02 03:15:08 jhoblitt Exp $
    66
    77use strict;
     
    9696
    9797        my $files = $response->data;
     98        # if we get an empty fileset ->request will sucessed but ->data will
     99        # return undef   
     100        next unless defined $files;
    98101        unless (@$files) {
    99102            print "no files in fileset ", $fileset->set, "\n" if $verbose;
Note: See TracChangeset for help on using the changeset viewer.