On 2013/04/29 23:50, Ted Unangst wrote:
> I would like pkg_add to scan the list of requested packages, their
> recursive dependencies, and then present me with all the questions at
> once.

The problem is that pkg_add doesn't know what these dependencies are
until it has already started downloading each package. So whatever you
do, you'll have to download things before it can ask those questions;
and potentially that's a big list (especially for pkg_add -u).

Additionally you'll need to download a whole load more because you'll
need to fetch the start of the package, abort download to ask the
question (you can't leave a stack of connections hanging, many ftp sites
have strict limits) and then download again.

One way around this is to put this information in a separate file,
but mirroring is not atomic, we can't rely on everything being
updated in-sync, so if we did this it would have to handle the situation
where the file either is not present or doesn't match the associated
packages.

> Ideally, it would also only ask the question once. Among the ... above
> I usually include git and rsync, but rsync is a dependency for git,
> which means pkg_add asks me twice which flavor I want.

This one's easier: for those which you know in advance, you can specify the
flavour in the list, "pkg_add rsync-- git" doesn't ask questions.

Reply via email to