On Jul 24, 2007, at 11:32 AM, Eric Searcy wrote:
> Problem statement: I would like to append package versions and an
> comparison operator to the name that is passed to
> BuildCommandLine. If you read the next sentence after the one you
> quoted above, I mention it could be done in package.c if we
> redesigned the function to take the pointer to the structure,
> instead of elements of the structure. Which way do you think would
> be the best way to do this:
After reading your patch in detail I'm fairly positive that this
isn't the right approach. Sorry, forgive the frankness. It
certainly would make nice shorthand for maching a specific version:
mypackage action=install version=2.12 cmp=lt
However, it would make the following impossible:
mypackage-2.12 action=install version=2.0 cmp=lt
In summary, if any 2.x of the package isn't installed then please
install 2.12.
Unless I am misreading your patch, you could not be specific without
also making the comparison potentially too specific as well. In my
mind, you can get the best of both worlds with the flexibility to
list the entire atom explicitly.
>=mypackage-2.12 action=install version=2.0 cmp=lt
Please clue me in if I am wrong.
--
Jo Rhett
senior geek
Silicon Valley Colocation
Support Phone: 408-400-0550
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine