[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#405161: tasksel: inconsistency in task definition syntax

On Tuesday 02 January 2007 21:04, you wrote:
> Eh? The first syntax has not been used for some time (if ever) and is
> not currently supported by tasksel. Are you thinking about this?
> Packages: list
>  foo
>  bar
>  baz

Eh, yes sorry. Was writing from memory, but should have checked.

> This is a pluggable packages list method implemented by
> /usr/lib/tasksel/packages/list; tasksel supports arbitrary other
> package list plugins. This particular one is mostly useful for custom
> distributions that want to hardcode a list of packages for a task in a
> file in /usr/share/tasksel/, rather than doing the more complex things
> needed to add Task: fields to the Packages files via overrides as we do
> in Debian.
> > I propose to change the first form to:
> >   Packages: task-files
> "task-files"?

Well, whatever you prefer. "list" would be fine too. I suggested
"task-files" as the package lists would end up as files in the tasksel 

The main thing is that I think it would be more consistent to have a 
separate field that indicates the type instead one field having both 
a "control" and a "content" function. To extract a list of packages for 
the current "list" method for debian-cd I had to use:

for i in $(cat task.list); do \
   grep-dctrl -F Task -e "^$i$" /usr/share/tasksel/debian-tasks.desc | \
   grep-dctrl -s Packages -e '.*' | egrep -v "^Packages:"; \
done | sed -e 's? *??' | grep -v ^$ >> ./task-full-etch

(an extra grep to get rid of the "Packages: list" line), instead of just:

for i in $(cat task.list); do \
   grep-dctrl -F Task -e "^$i$" /usr/share/tasksel/debian-tasks.desc | \
   grep-dctrl -s Packages-list -n -e '.*'; \
done | sed -e 's? *??' | grep -v ^$ >> ./task-full-etch

Attachment: pgp2JM_S4Xfhs.pgp
Description: PGP signature

Reply to: