Skip to content

Commit

Permalink
install_package(): Add trup_continue keyword parameter
Browse files Browse the repository at this point in the history
Add support for passing the -c parameter to transactional-update
script by calling install_package(..., trup_continue => 1);
  • Loading branch information
mdoucha committed Aug 5, 2024
1 parent e5dfd40 commit 4735c03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/package_utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ sub install_package {
record_info('install_package', $args{skip_trup}) if $args{skip_trup} =~ /\w+/;
return if $args{skip_trup};
$packages .= ' ' . $args{trup_extra} // '';
$ret = trup_call('pkg in -l ' . $packages, timeout => $args{timeout});
my $cmd = 'pkg in -l ' . $packages;
$cmd = '-c ' . $cmd if $args{trup_continue} // 0;
$ret = trup_call($cmd, timeout => $args{timeout});
check_reboot_changes if $args{trup_reboot};
}
else {
Expand Down

0 comments on commit 4735c03

Please sign in to comment.