Instead of passing a param to check_reboot_required that causes it to return 0, just don't call it

This commit is contained in:
Jamie Cameron
2024-09-28 15:13:24 -07:00
parent 65e70835d2
commit bc820a5148
3 changed files with 8 additions and 8 deletions

View File

@@ -677,13 +677,10 @@ return $mode eq 'updates' || $mode eq 'security' ?
&list_possible_updates($nocache) : &list_available($nocache);
}
# check_reboot_required([no-collect])
# check_reboot_required()
# Returns 1 if the package system thinks a reboot is needed
# If the no-collect flag is set, then check won't happen
sub check_reboot_required
{
my ($no_collect) = @_;
return 0 if ($no_collect);
if ($gconfig{'os_type'} eq 'debian-linux') {
if (-e "/var/run/reboot-required") {
return 1;