[indiana-discuss] [pkg-discuss] pkg won't install older versions of packages
Bart Smaalders
bart.smaalders at Sun.COM
Wed Apr 22 14:40:34 PDT 2009
Shawn Walker wrote:
> Danek Duvall wrote:
>> On Wed, Apr 22, 2009 at 04:00:14PM -0500, Shawn Walker wrote:
>>
>>> If I may ask, what do you feel is the issue with pkg:/ ?
>>
>> It doesn't strike me as having anything to do with the version, and so
>> using it to anchor the version doesn't make much sense. Also, more
>> concretely, what if I want to add a package from a specific authority,
>> but want the version to float in a limited range?
>
> My problem with using a flag was that it then makes exact matching
> dependent upon the command instead of the syntax. I also assumed that
> when you specified an authority, you didn't want to float in a limited
> range.
>
> Does anyone have better suggestions for a syntax alternative?
>
> It seems far easier to me to assume exact match, and then only float
> versions if told to...
>
I'd just as soon do the following:
1) if there are no constraints on the image, do what the user specifies,
but take the latest package that matches the specification:
foo at 1.0 would match foo at 1.0.1, for example/
To permit the installation of foo at 1.0 when foo at 1.0.1 exists, allow
the specification of extra .0s as needed as in:
foo at 1.0.0, which would not match foo at 1.0.1
2) If there are constraints on the image such that the user's spec.
cannot be met as in 1), fail the install.
- Bart
--
Bart Smaalders Solaris Kernel Performance
barts at cyber.eng.sun.com http://blogs.sun.com/barts
"You will contribute more with mercurial than with thunderbird."
More information about the indiana-discuss
mailing list