Changeset 170 for trunk/gsdl/perllib


Ignore:
Timestamp:
1999-02-24T14:48:34+13:00 (25 years ago)
Author:
sjboddie
Message:

add verbosity option for import.pl

Location:
trunk/gsdl/perllib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/docsave.pm

    r134 r170  
    1515
    1616sub new {
    17     my ($class, $collection, $archive_info) = @_;
     17    my ($class, $collection, $archive_info, $verbosity) = @_;
    1818    my $self = new docproc ();
    1919
    2020    $self->{'collection'} = $collection;
    2121    $self->{'archive_info'} = $archive_info;
     22    $self->{'verbosity'} = $verbosity;
    2223
    2324    # set a default for the archive directory
  • trunk/gsdl/perllib/plugin.pm

    r134 r170  
    4343    }
    4444
    45     print STDERR "WARNING - no plugin could process " .
    46     &util::filename_cat($base_dir,$file) . "\n";
     45    if ($processor->{'verbosity'}) {
     46    print STDERR "WARNING - no plugin could process " .
     47        &util::filename_cat($base_dir,$file) . "\n";
     48    }
    4749}
    4850
Note: See TracChangeset for help on using the changeset viewer.