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

[d-i] Improving the description in template anna/choose-retriever



Right now, the template anna/choose-retriever description is:

Description: Choose the retriever to use.
 The retriever is responsible for fetching the packages to be
 installed.

which says nothing at all about the choices. In fact, that description
should have a fat TODO FIXME FIXME TODO stamp :)

My idea is to use the descriptions of the various installed retrievers
to achieve something like:

 wget-retriever: Wget retriever

(yes, the current description of wget-retriever sucks, maybe it should
be something like "Retrieves packages over the internet", and maybe it
should be called net-retriever instead? wget is just the
implementation...)

This means I have to parse a Packages/status at one more place again.
Good thing I created the function di_pkg_parse to libd-i, but it also
raises the question of caching the returned list. Should I try to
implement some basic caching in di_pkg_parse?

Another question is, with the chosen_retriever function only checks for
retrievers once, how do we use different retrievers for different phases
of the installation? Add a boolean reconfigure argument or somehow
detect that the contents of /usr/lib/debian-installer/retriever has
changed? (how do I do that anyway? If I stat the directory, what can I
probe?)


/Martin

Attachment: signature.asc
Description: Detta =?ISO-8859-1?Q?=E4r?= en digitalt signerad meddelandedel


Reply to: