Nicholas Solter wrote:
Bart Smaalders wrote:
We have two options; fail the requested install, or adjust the package
version to meet implied constraints.

Which behavior is better?


Bart,

If I ask for a specific version, I would expect the command to fail if it can't install that version, rather than installing a different version that I may or may not want. If I don't care about a specific version, I can easily ask for the package without a version number.

I actually have to agree with Nick.

If a user *fully* specifies a version, and we can't install that specific version, we should fail.

However, my personal, specific expectations are as follows:

pkg install foo
-- installs the latest available version of foo and fails if it cannot

pkg install [email protected]
-- installs the latest build_release, branch and timestamp for a 1.0 release of foo and fails if it cannot

pkg install [email protected],5.11
-- installs the latest branch and timestamp for a 1.0 release, 5.11 build_release of foo and fails if it cannot

pkg install [email protected],5.11-0.101
-- installs the latest timestamp for a 1.0 release, 5.11 build_release, and build 0.101 of foo and fails if it cannot

pkg install [email protected],5.11-0.101:20090331T083226Z
-- installs 1.0 release, 5.11 build_release, 0.101 build, 20090331T083226Z timestamp version of foo, and fails if it cannot

Cheers,
--
Shawn Walker
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to