IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16917


Ignore:
Timestamp:
Mar 10, 2008, 3:30:37 PM (18 years ago)
Author:
eugene
Message:

allow dvodb to be abstract name or file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Config/lib/PS/IPP/Config.pm

    r16750 r16917  
    11# Copyright (c) 2006  Paul Price, Joshua Hoblitt
    22#
    3 # $Id: Config.pm,v 1.79 2008-02-29 02:45:24 price Exp $
     3# $Id: Config.pm,v 1.80 2008-03-11 01:30:37 eugene Exp $
    44
    55package PS::IPP::Config;
     
    885885    my $catdir = metadataLookupStr($tessellations, $tess_id);
    886886    unless (defined $catdir) {
    887         carp "Can't find tessellation identifier $tess_id in TESSELLATIONS in site configuration.\n";
    888         exit($PS_EXIT_CONFIG_ERROR);
     887        print "Can't find tessellation identifier $tess_id in TESSELLATIONS in site configuration, assuming it is a filename.\n";
     888        return $tess_id;
    889889    }
    890890
     
    919919    my $catdir = metadataLookupStr($catdirs, $dvodb);
    920920    unless (defined $catdir) {
    921         carp "Can't find dvodb identifier $dvodb in DVO.CATDIR in site configuration.\n";
    922         exit($PS_EXIT_CONFIG_ERROR);
     921        print "Can't find dvodb identifier $dvodb in DVO.CATDIR in site configuration, assuming filename\n";
     922        return $dvodb;
    923923    }
    924924
     
    952952    my $catdir = metadataLookupStr($catdirs, $dvodb);
    953953    unless (defined $catdir) {
    954         carp "Can't find dvodb identifier $dvodb in PSASTRO.CATDIR in site configuration.\n";
    955         exit($PS_EXIT_CONFIG_ERROR);
     954        print "Can't find dvodb identifier $dvodb in PSASTRO.CATDIR in site configuration, assuming filename.\n";
     955        return $dvodb;
    956956    }
    957957
Note: See TracChangeset for help on using the changeset viewer.