don't install essential packages in run_install()

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-02-11 23:01:08 +01:00
parent 3962f36441
commit 2b60a932a9
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -2722,13 +2722,18 @@ sub run_install() {
any { $_ eq $options->{variant} }
('required', 'important', 'standard', 'buildd')
) {
# Many of the priority:required packages are also essential:yes. We
# make sure not to select those here to avoid useless "xxx is already
# the newest version" messages.
my $priority;
if (any { $_ eq $options->{variant} } ('required', 'buildd')) {
$priority = '?priority(required)';
$priority = '?and(?priority(required),?not(?essential))';
} elsif ($options->{variant} eq 'important') {
$priority = '?or(?priority(required),?priority(important))';
$priority = '?and(?or(?priority(required),?priority(important)),'
. '?not(?essential))';
} elsif ($options->{variant} eq 'standard') {
$priority = '?or(~prequired,~pimportant,~pstandard)';
$priority = '?and(?or(~prequired,~pimportant,~pstandard),'
. '?not(?essential))';
}
$pkgs_to_install{
"?narrow("