Subversion Repositories camp_sysinfo_client_3

Rev

Rev 114 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 114 Rev 115
Line 276... Line 276...
276
   if ( $os ) {
276
   if ( $os ) {
277
      # We found the OS, set up some defaults
277
      # We found the OS, set up some defaults
278
      $$install{'os'} = $os;
278
      $$install{'os'} = $os;
279
      print "Setting keys for operating system\n" if $verbose > 2;
279
      print "Setting keys for operating system\n" if $verbose > 2;
280
      # merge operatingSystems into install
280
      # merge operatingSystems into install
281
      $install = deepmerge( $install, $operatingSystems->{ $os } );
281
      foreach my $key ( keys %{$operatingSystems->{ $os }} ) {
-
 
282
         if ( $key eq 'files' ) {
282
      #foreach my $key ( keys %{$$operatingSystems{ $os }} ) {
283
            $install->{'files'} = { %{$install->{'files'}}, %{$operatingSystems->{$os}->{'files'}} }
-
 
284
         } else {
283
      #   $$install{$key} = $operatingSystems{ $os }{$key};
285
            $install->{$key} = $operatingSystems->{ $os }->{$key};
-
 
286
         }
284
      #} # if it is a known OS
287
      } # if it is a known OS
285
   } # if
288
   } # if
286
   return $os;
289
   return $os;
287
} # getOperatingSystem
290
} # getOperatingSystem
288
 
291
 
289
 
292
 
Line 511... Line 514...
511
if ( $version ) { print "$0 version $VERSION\n"; exit; }
514
if ( $version ) { print "$0 version $VERSION\n"; exit; }
512
&setDryRun( $dryRun ); # tell the library whether this is a dry run or not
515
&setDryRun( $dryRun ); # tell the library whether this is a dry run or not
513
 
516
 
514
$os = `$sourceDir/determineOS` unless $os;
517
$os = `$sourceDir/determineOS` unless $os;
515
# figure out if we know our operating system and set up special stuff for it
518
# figure out if we know our operating system and set up special stuff for it
-
 
519
 
516
$os = &setUpOperatingSystemSpecific( \%install, \%operatingSystems, $os );
520
$os = &setUpOperatingSystemSpecific( \%install, \%operatingSystems, $os );
517
 
521
 
-
 
522
#$os = &setUpOperatingSystemSpecific( \%install, \%operatingSystems, 'freebsd' );
-
 
523
#print Dumper( \%install ); die;
-
 
524
 
518
&validateLibraries( \%libraries, $os );
525
&validateLibraries( \%libraries, $os );
519
 
526
 
520
$installType = &getInstallActions( \%install );
527
$installType = &getInstallActions( \%install );
521
 
528
 
522
# based on the defaults, flesh out the install hash
529
# based on the defaults, flesh out the install hash