diff options
author | cube <cube@pkgsrc.org> | 2005-01-14 17:15:21 +0000 |
---|---|---|
committer | cube <cube@pkgsrc.org> | 2005-01-14 17:15:21 +0000 |
commit | ad65c3c69c3134776c0e30db89ad82452e80ac7c (patch) | |
tree | ab923daa7c55a2c4af8b37bb93e62b75aa27bc39 /pkgtools/libkver | |
parent | 25a0ee49128a98a1955bd6bf6e272dbadb1c62ae (diff) | |
download | pkgsrc-ad65c3c69c3134776c0e30db89ad82452e80ac7c.tar.gz |
Add support for versions such as 2.0_STABLE.
XXX: actually, it would be nice if pkg_add didn't complain when adding a
2.0 package to a 2.0_STABLE system.
Diffstat (limited to 'pkgtools/libkver')
-rw-r--r-- | pkgtools/libkver/files/lib/kver.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgtools/libkver/files/lib/kver.c b/pkgtools/libkver/files/lib/kver.c index cf4354b0f31..df8143d89f3 100644 --- a/pkgtools/libkver/files/lib/kver.c +++ b/pkgtools/libkver/files/lib/kver.c @@ -1,4 +1,4 @@ -/* $NetBSD: kver.c,v 1.5 2004/07/06 09:45:38 cube Exp $ */ +/* $NetBSD: kver.c,v 1.6 2005/01/14 17:15:21 cube Exp $ */ #include <sys/types.h> #include <sys/param.h> @@ -93,6 +93,10 @@ str2osrevision(char *s) return KVER_INVALID_OSRELEASE; return r; } + /* or optional underscore followed by release status */ + if (*s == '_') + /* ignore the trailing label */ + return r; /* or optional letters: release */ n = 0; c = 'Z'; |