diff options
Diffstat (limited to 'solenv/bin')
-rw-r--r-- | solenv/bin/modules/installer/download.pm | 4 | ||||
-rw-r--r-- | solenv/bin/modules/installer/epmfile.pm | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/solenv/bin/modules/installer/download.pm b/solenv/bin/modules/installer/download.pm index d1e74bd93294..0fee1c7dc4d5 100644 --- a/solenv/bin/modules/installer/download.pm +++ b/solenv/bin/modules/installer/download.pm @@ -192,7 +192,9 @@ sub call_sum sub get_path_for_library { - return $ENV{'WORKDIR'} . '/LinkTarget/Library/libgetuid.so'; + my $getuidlibrary = $ENV{'WORKDIR'} . '/LinkTarget/Library/libgetuid.so'; + if ( ! -e $getuidlibrary ) { installer::exiter::exit_program("File $getuidlibrary does not exist!", "get_path_for_library"); } + return $getuidlibrary; } ######################################################### diff --git a/solenv/bin/modules/installer/epmfile.pm b/solenv/bin/modules/installer/epmfile.pm index dca6eeacb563..b33aad152bd1 100644 --- a/solenv/bin/modules/installer/epmfile.pm +++ b/solenv/bin/modules/installer/epmfile.pm @@ -794,8 +794,9 @@ sub set_patch_state sub get_ld_preload_string { - return 'LD_PRELOAD=' . $ENV{'WORKDIR'} - . '/LinkTarget/Library/libgetuid.so'; + my $getuidlibrary = $ENV{'WORKDIR'} . '/LinkTarget/Library/libgetuid.so'; + if ( ! -e $getuidlibrary ) { installer::exiter::exit_program("File $getuidlibrary does not exist!", "get_ld_preload_string"); } + return 'LD_PRELOAD=' . $getuidlibrary; } ################################################# |