Bug#274936: tasksel: Split the debian-tasks.desc
|--==> Joey Hess writes:
JH> [1 <text/plain; us-ascii (quoted-printable)>]
JH> Otavio Salvador wrote:
>>I thin we can drop the earlier info. More simple.
JH> This patch may do that, but I have not tested it.
The patch works nicely :)
For example I can hide the Desktop task with a couple of lines, in a
separate file:
-- /usr/share/tasksel/00override.desc ---
Task: desktop
Test-standard: skip
-----------------------------------------
The "standard" test is the one I posted in my other bug report.
Maybe it would be useful to rename debian-tasks.desc in
10debian-tasks.desc, in order the to get a neater evaluation sequence.
Cheers,
Free
JH> Index: tasksel.pl
JH> ===================================================================
JH> --- tasksel.pl (revision 808)
JH> +++ tasksel.pl (working copy)
JH> @@ -74,6 +74,8 @@
JH> # Loads info for all tasks, and returns a set of task structures.
JH> sub all_tasks {
JH> + my %seen;
JH> + grep { $seen{$_->{task}}++; $seen{$_->{task}} < 2 }
JH> map { read_task_desc($_) } list_task_descs();
JH> }
Reply to: