diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-10-28 23:03:56 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-10-29 11:37:49 +0100 |
commit | f3616065a72656a11a75d7f5dae363050b03daed (patch) | |
tree | e062070df28986c6778fcff39d88bbe99cb2a61c /solenv | |
parent | 368729decbf368161b0fed3be262c2bad840b6f6 (diff) |
installer: let's make missing FileID a fatal error
... because the upcoming AutoInstall conversions introduce dependency
from FolderItem to auto-installed executables, and we want to ensure
that that keeps working.
Change-Id: I08d4aeddd28b93f080e201716597315e9a6ec2d6
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/bin/modules/installer/setupscript.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/solenv/bin/modules/installer/setupscript.pm b/solenv/bin/modules/installer/setupscript.pm index 9cf5e920fca1..6eefe01f0bd5 100644 --- a/solenv/bin/modules/installer/setupscript.pm +++ b/solenv/bin/modules/installer/setupscript.pm @@ -418,9 +418,10 @@ sub prepare_non_advertised_files if ( $folderitem->{'ComponentIDFile'} ) { $fileid = $folderitem->{'ComponentIDFile'}; } my $onefile = installer::worker::find_file_by_id($filesref, $fileid); - # Attention: If $onefile with "FileID" is not found, this is not always an error. - # FileID can also contain an executable file, for example msiexec.exe. if ( $onefile ne "" ) { $onefile->{'needs_user_registry_key'} = 1; } + else { + installer::exiter::exit_program("ERROR: Did not find FileID $fileid in file collection", "prepare_non_advertised_files"); + } } } } |