Re: versions comparison

2023-02-17 Thread winnie hw
Thanks Greg. Good to know that. regards. On Sat, Feb 18, 2023 at 9:08 AM Greg Wooledge wrote: > On Sat, Feb 18, 2023 at 08:38:22AM +0800, winnie hw wrote: > > sorry this is maybe not related to debian directly. > > but how can I compare two versions of a package by programming? > > for instance

Re: versions comparison

2023-02-17 Thread The Wanderer
On 2023-02-17 at 20:48, Greg Wooledge wrote: > On Fri, Feb 17, 2023 at 07:42:24PM -0600, John Hasler wrote: > >> Also, while Debian uses a sane, consistent version numbering system it >> is not safe to make assumptions about what non-Debian developers do. > > The best thing I can say about Debian

Re: versions comparison

2023-02-17 Thread Greg Wooledge
On Fri, Feb 17, 2023 at 07:42:24PM -0600, John Hasler wrote: > Also, while Debian uses a sane, consistent version numbering system it > is not safe to make assumptions about what non-Debian developers do. The best thing I can say about Debian's version strings is that they are documented. unicorn

Re: versions comparison

2023-02-17 Thread John Hasler
Also, while Debian uses a sane, consistent version numbering system it is not safe to make assumptions about what non-Debian developers do. There have been some very original systems used, and developers have been known to change systems in midstream. -- John Hasler j...@sugarbit.com Elmwood, WI

Re: versions comparison

2023-02-17 Thread Greg Wooledge
On Sat, Feb 18, 2023 at 08:38:22AM +0800, winnie hw wrote: > sorry this is maybe not related to debian directly. > but how can I compare two versions of a package by programming? > for instance, v1.24.0.1 should be later than v1.23.99.999. Debian's dpkg(1) command has a --compare-versions option.

versions comparison

2023-02-17 Thread winnie hw
Hello, sorry this is maybe not related to debian directly. but how can I compare two versions of a package by programming? for instance, v1.24.0.1 should be later than v1.23.99.999. Thank you.