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 | bfcdc04fd8a736d6ad0683825aa59de2224c4510 (patch) | |
tree | ab923daa7c55a2c4af8b37bb93e62b75aa27bc39 /pkgtools/libkver | |
parent | 2dc2ff59287ca6dbaec19b7ba0f061ee1db86fd5 (diff) | |
download | pkgsrc-bfcdc04fd8a736d6ad0683825aa59de2224c4510.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'; |