IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17829


Ignore:
Timestamp:
May 28, 2008, 10:28:46 AM (18 years ago)
Author:
jhoblitt
Message:

change file_resolve() to remove one nebulous call when "touching"

File:
1 edited

Legend:

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

    r17668 r17829  
    11# Copyright (c) 2006  Paul Price, Joshua Hoblitt
    22#
    3 # $Id: Config.pm,v 1.86 2008-05-14 02:06:37 jhoblitt Exp $
     3# $Id: Config.pm,v 1.87 2008-05-28 20:28:46 jhoblitt Exp $
    44
    55package PS::IPP::Config;
     
    376376        if ($touch) {
    377377            unless ($neb->stat( $name )) {
    378                 unless($neb->create( $name )) {
     378                my $uri = $neb->create( $name );
     379                unless(defined $uri) {
    379380                    carp "unable to instantiate $name.";
    380381                    exit($PS_EXIT_DATA_ERROR);
    381382                }
     383                my $path = URI->new( $uri )->path;
     384                return $path;
    382385            }
    383386        }
Note: See TracChangeset for help on using the changeset viewer.