summaryrefslogtreecommitdiff
path: root/pkgtools/libkver
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2005-03-30 06:41:01 +0000
committerseb <seb@pkgsrc.org>2005-03-30 06:41:01 +0000
commit23f002301e6ba9c543297b5c16ff7943d869215f (patch)
treefc833c0157a222a84d6ffe51c56fb6d7c50e7766 /pkgtools/libkver
parentc29027745ca16e56f99c02da850714533e32ffe4 (diff)
downloadpkgsrc-23f002301e6ba9c543297b5c16ff7943d869215f.tar.gz
Update to version 0.6.
Support NetBSD release like X.Y.Z_LABEL eg 1.6.2_STABLE.
Diffstat (limited to 'pkgtools/libkver')
-rw-r--r--pkgtools/libkver/Makefile4
-rw-r--r--pkgtools/libkver/files/lib/kver.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/pkgtools/libkver/Makefile b/pkgtools/libkver/Makefile
index dcc138067f0..8edf33d4a9c 100644
--- a/pkgtools/libkver/Makefile
+++ b/pkgtools/libkver/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2005/01/06 05:32:29 tv Exp $
+# $NetBSD: Makefile,v 1.13 2005/03/30 06:41:01 seb Exp $
DISTNAME= libkver-${VERSION}
CATEGORIES= pkgtools
@@ -18,7 +18,7 @@ NO_PKGTOOLS_REQD_CHECK= # defined
NO_CHECKSUM= # defined
NO_MTREE= # defined
-VERSION= 0.5
+VERSION= 0.6
ONLY_FOR_PLATFORM= NetBSD-*-*
diff --git a/pkgtools/libkver/files/lib/kver.c b/pkgtools/libkver/files/lib/kver.c
index df8143d89f3..7d62bcdf256 100644
--- a/pkgtools/libkver/files/lib/kver.c
+++ b/pkgtools/libkver/files/lib/kver.c
@@ -1,4 +1,4 @@
-/* $NetBSD: kver.c,v 1.6 2005/01/14 17:15:21 cube Exp $ */
+/* $NetBSD: kver.c,v 1.7 2005/03/30 06:41:01 seb Exp $ */
#include <sys/types.h>
#include <sys/param.h>
@@ -89,10 +89,10 @@ str2osrevision(char *s)
n = (n * 10) + (*s - '0');
}
r += (n * 100);
- if (*s != 0)
- return KVER_INVALID_OSRELEASE;
- return r;
}
+ /* nothing more, return */
+ if (*s == 0)
+ return r;
/* or optional underscore followed by release status */
if (*s == '_')
/* ignore the trailing label */