On 12/03/2026 at 10:48, Pascal Hambourg wrote:

In addition, it appears that language tasks are selected only during the initial installation. So if a desktop environment is selected by running tasksel after the initial installation, then associated desktop language tasks are not selected.
"Base" language tasks use the "lang" test which marks them for install only on new installation. Sounds fair. Desktop language tasks enhance base language tasks and desktop tasks but enhancing tasks are marked for install only if all enhanced tasked are marked for install and not if they are already installed. I believe this is wrong and could be fixed easily:

diff --git a/tasksel.pl b/tasksel.pl
index 80f2a75b..8abc7264 100755
--- a/tasksel.pl
+++ b/tasksel.pl
@@ -836,7 +836,7 @@ sub interactive {
                                }

                                foreach my $dep (@deps) {
-                                       if (! $dep->{_install}) {
+ if (! $dep->{_install} && ! task_installed($dep) {
                                                $task->{_install} = 0;
                                        }
                                }

Reply via email to