diff options
author | Andras Timar <atimar@suse.com> | 2013-04-04 08:51:40 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2013-04-04 09:01:40 +0200 |
commit | 7427902a403f2d13204463b9a4d43e82d1caa954 (patch) | |
tree | 14632136adf2f166309edd6c3872c9302ac427bb /solenv | |
parent | f5c25c54d38e06e8fb5f36be043b9316da036bf9 (diff) |
[SUSE only] add EULA
Change-Id: I28b5e36d8e88dba2fa3a6f7cd66e25b3316ef42a
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/bin/modules/installer/windows/idtglobal.pm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/solenv/bin/modules/installer/windows/idtglobal.pm b/solenv/bin/modules/installer/windows/idtglobal.pm index 2905a6799196..9fd73e9379fc 100644 --- a/solenv/bin/modules/installer/windows/idtglobal.pm +++ b/solenv/bin/modules/installer/windows/idtglobal.pm @@ -829,11 +829,18 @@ sub get_rtflicensefilesource { my ($language, $includepatharrayref) = @_; - my $licensefilename = "license_" . $language . ".rtf"; + my $licensefilename = "EULA_" . $language . ".rtf"; my $sourcefileref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$licensefilename, $includepatharrayref, 1); - if ($$sourcefileref eq "") { installer::exiter::exit_program("ERROR: Could not find $licensefilename!", "get_rtflicensefilesource"); } + if ($$sourcefileref eq "") + { + my $infoline = "WARNING: Could not find localized EULA file: $licensefilename. Using EULA_en-US.rtf.\n"; + push( @installer::globals::logfileinfo, $infoline); + $licensefilename = "EULA_en-US.rtf"; + $sourcefileref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$licensefilename, $includepatharrayref, 1); + if ($$sourcefileref eq "") { installer::exiter::exit_program("ERROR: Could not find $licensefilename!", "get_rtflicensefilesource"); } + } my $infoline = "Using licensefile: $$sourcefileref\n"; push( @installer::globals::logfileinfo, $infoline); |