pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/pkgsrc-2005Q1]: pkgsrc/pkgtools/libkver Pullup ticket 403 - requested...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c212b01a1c32
branches:  pkgsrc-2005Q1
changeset: 490896:c212b01a1c32
user:      snj <snj%pkgsrc.org@localhost>
date:      Fri Apr 01 05:30:34 2005 +0000

description:
Pullup ticket 403 - requested by Lubomir Sedlacik
libkver update

Revisions pulled up:
- pkgsrc/pkgtools/libkver/Makefile              1.13
- pkgsrc/pkgtools/libkver/files/lib/kver.c      1.7


    Module Name:    pkgsrc
    Committed By:   seb
    Date:           Wed Mar 30 06:41:01 UTC 2005

    Modified Files:
            pkgsrc/pkgtools/libkver: Makefile
            pkgsrc/pkgtools/libkver/files/lib: kver.c

    Log Message:
    Update to version 0.6.

    Support NetBSD release like X.Y.Z_LABEL eg 1.6.2_STABLE.

diffstat:

 pkgtools/libkver/Makefile         |  4 ++--
 pkgtools/libkver/files/lib/kver.c |  8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r b4b77c6ffe07 -r c212b01a1c32 pkgtools/libkver/Makefile
--- a/pkgtools/libkver/Makefile Fri Apr 01 05:19:44 2005 +0000
+++ b/pkgtools/libkver/Makefile Fri Apr 01 05:30:34 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2005/01/06 05:32:29 tv Exp $
+# $NetBSD: Makefile,v 1.12.2.1 2005/04/01 05:30:34 snj Exp $
 
 DISTNAME=              libkver-${VERSION}
 CATEGORIES=            pkgtools
@@ -18,7 +18,7 @@
 NO_CHECKSUM=           # defined
 NO_MTREE=              # defined
 
-VERSION=               0.5
+VERSION=               0.6
 
 ONLY_FOR_PLATFORM=     NetBSD-*-*
 
diff -r b4b77c6ffe07 -r c212b01a1c32 pkgtools/libkver/files/lib/kver.c
--- a/pkgtools/libkver/files/lib/kver.c Fri Apr 01 05:19:44 2005 +0000
+++ b/pkgtools/libkver/files/lib/kver.c Fri Apr 01 05:30:34 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kver.c,v 1.6 2005/01/14 17:15:21 cube Exp $    */
+/*     $NetBSD: kver.c,v 1.6.2.1 2005/04/01 05:30:34 snj Exp $ */
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -89,10 +89,10 @@
                        n = (n * 10) + (*s - '0');
                }
                r += (n * 100);
-               if (*s != 0)
-                       return KVER_INVALID_OSRELEASE;
+       }
+       /* nothing more, return */
+       if (*s == 0)
                return r;
-       }
        /* or optional underscore followed by release status */
        if (*s == '_')
                /* ignore the trailing label */



Home | Main Index | Thread Index | Old Index