Changeset 18086
- Timestamp:
- Jun 11, 2008, 3:35:08 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/PS-IPP-Config/lib/PS/IPP/Config.pm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-Config/lib/PS/IPP/Config.pm
r17970 r18086 1 1 # Copyright (c) 2006 Paul Price, Joshua Hoblitt 2 2 # 3 # $Id: Config.pm,v 1. 89 2008-06-07 02:35:39 billsExp $3 # $Id: Config.pm,v 1.90 2008-06-12 01:35:08 eugene Exp $ 4 4 5 5 package PS::IPP::Config; … … 373 373 if ($scheme) { 374 374 $scheme = lc($scheme); 375 # print "scheme: $scheme\n"; 375 376 376 377 if ($scheme eq 'neb') { … … 379 380 if ($create_if_doesnt_exist) { 380 381 unless ($neb->stat( $name )) { 382 # print "entry $name not found, creating...\n"; 381 383 my $uri = $neb->create( $name ); 382 384 unless(defined $uri) { … … 385 387 } 386 388 my $path = URI->new( $uri )->path; 389 # print "created path: $path\n"; 387 390 return $path; 388 391 } 389 392 } 390 return $neb->find( $name ); 391 } 393 my $path = $neb->find( $name ); 394 if (not defined $path) { 395 carp "neb entry $name not found, not created\n"; 396 exit($PS_EXIT_DATA_ERROR); 397 } 398 # print "found path: $path\n"; 399 return $path; 400 } 401 392 402 if ($scheme eq 'path' or $scheme eq 'file') { 393 403 # guaranteed to have a scheme (path:// or file://) 394 404 $name = $self->convert_filename_absolute( $name ); 405 # print "resolved path to $name\n"; 395 406 } 396 407 } … … 408 419 open F, ">$name" or die "failed to create $name"; 409 420 close F; 421 # print "created target $name\n"; 410 422 } 411 423
Note:
See TracChangeset
for help on using the changeset viewer.
