From 2b60a932a968ab5c05311feb876a9748f49f3b3b Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Fri, 11 Feb 2022 23:01:08 +0100 Subject: [PATCH] don't install essential packages in run_install() --- mmdebstrap | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/mmdebstrap b/mmdebstrap index f8c4de1..682dc69 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -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("