On Wed, Jul 11, 2001 at 11:51:09AM -0300, Miguel Griffa wrote:
> mmm... wouldn't just strcmp work?
Even ignoring epochs and debian revisions, upstream version 1.10 is
newer than version 1.9, but strcmp will get even that simple case wrong.
ASCII comparison doesn't work very well on numbers unless
Miguel Griffa <[EMAIL PROTECTED]> wrote:
>At 04:14 p.m. 11/07/01 +0200, Alex Suzuki wrote:
>>I'm currently writing a small program in C that is supposed to
>>show me which packages I have from woody and which ones from
>>sid (my system is actually a mix of both of them).
>>Now, a problem I am likel
> I'm currently writing a small program in C that is supposed to
> show me which packages I have from woody and which ones from
> sid (my system is actually a mix of both of them).
> Now, a problem I am likely to encounter soon are the version
> numbers. Do the follow some kind of scheme?
>
> For
At 04:14 p.m. 11/07/01 +0200, Alex Suzuki wrote:
Hello debian users,
I'm currently writing a small program in C that is supposed to
show me which packages I have from woody and which ones from
sid (my system is actually a mix of both of them).
Now, a problem I am likely to encounter soon are the
Alex Suzuki wrote:
> If I had the version string saved somewhere, and an other
> one like 1:1.2.3-9.4, how can I compare them, is there a
> function that can do this?
See the dpkg source code.
--
see shy jo
5 matches
Mail list logo