On Mon, Apr 28, 2014 at 3:05 PM, Michał Lesiak <mic...@10bees.com> wrote:
> Hello,
>
> I'm trying to invent a oneliner for installing a specific package. The
> problem is, the destination file is a redirect file forwarding a request to
> a target package. The result is:
>
> # pkg_add -vvvvv
> http://10bees-agent.s3-website-us-east-1.amazonaws.com/openbsd/agent.tgz
> parsing agent
> Package name is not consistent ???
> Error from
> http://10bees-agent.s3-website-us-east-1.amazonaws.com/openbsd/agent.tgz
> Redirected to
> http://10bees-agent.s3-website-us-east-1.amazonaws.com/openbsd/10bees-1.1.55.20.tgz
> ftp: Writing -: Broken pipe
> --- 10bees-1.1.55.20 -------------------
> Can't install 10bees-1.1.55.20: bad package
>
> The idea behind that is that 'agent.tgz' will always point to the latest
> version, so there is no need for users to keep track of the versions.

Given package name-version{0,1}.tgz in a $PKG_PATH directory, `pkg_add
name` will match both and present the user with a choice.

Given package name-version1.tgz only, `pkg_add name` doesn't prompt
because there's a single directory entry match.

I would exclusively populate the directory with entries, symlinks or
otherwise, pertaining to the latest version of packages.

Reply via email to