diff options
author | wiz <wiz@pkgsrc.org> | 2013-01-31 10:25:30 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2013-01-31 10:25:30 +0000 |
commit | 61969ab1f473d53309858065e8ebc8af0d7ca75a (patch) | |
tree | 12d0ae91553be8112402b6eb1ad97ce0c0045b22 /pkgtools | |
parent | 14ca9673e08d256b7b0cc20b6c5b212163b018a9 (diff) | |
download | pkgsrc-61969ab1f473d53309858065e8ebc8af0d7ca75a.tar.gz |
Shut up warnings about 6.0 packages on 6.0.1 (and similar).
Welcome to 20130131.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkg_install/files/add/perform.c | 8 | ||||
-rw-r--r-- | pkgtools/pkg_install/files/lib/version.h | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/pkgtools/pkg_install/files/add/perform.c b/pkgtools/pkg_install/files/add/perform.c index 6f60eebc785..6c792b08c45 100644 --- a/pkgtools/pkg_install/files/add/perform.c +++ b/pkgtools/pkg_install/files/add/perform.c @@ -1,4 +1,4 @@ -/* $NetBSD: perform.c,v 1.102 2012/02/21 13:32:24 wiz Exp $ */ +/* $NetBSD: perform.c,v 1.103 2013/01/31 10:25:30 wiz Exp $ */ #if HAVE_CONFIG_H #include "config.h" #endif @@ -6,7 +6,7 @@ #if HAVE_SYS_CDEFS_H #include <sys/cdefs.h> #endif -__RCSID("$NetBSD: perform.c,v 1.102 2012/02/21 13:32:24 wiz Exp $"); +__RCSID("$NetBSD: perform.c,v 1.103 2013/01/31 10:25:30 wiz Exp $"); /*- * Copyright (c) 2003 Grant Beattie <grant@NetBSD.org> @@ -156,6 +156,10 @@ compatible_platform(const char *opsys, const char *host, const char *package) if (strcmp(host, package) == 0) return 1; + /* accept, if host version is a minor release of package version */ + if (strncmp(host, package, strlen(package)) == 0) + return 1; + /* find offset of first difference */ for (i=0; (host[i] != '\0') && (host[i] == package[i]);) i++; diff --git a/pkgtools/pkg_install/files/lib/version.h b/pkgtools/pkg_install/files/lib/version.h index d8a5f778da5..8f34d2c9f72 100644 --- a/pkgtools/pkg_install/files/lib/version.h +++ b/pkgtools/pkg_install/files/lib/version.h @@ -1,4 +1,4 @@ -/* $NetBSD: version.h,v 1.164 2012/02/21 14:54:41 wiz Exp $ */ +/* $NetBSD: version.h,v 1.165 2013/01/31 10:25:30 wiz Exp $ */ /* * Copyright (c) 2001 Thomas Klausner. All rights reserved. @@ -27,6 +27,6 @@ #ifndef _INST_LIB_VERSION_H_ #define _INST_LIB_VERSION_H_ -#define PKGTOOLS_VERSION 20120221 +#define PKGTOOLS_VERSION 20130131 #endif /* _INST_LIB_VERSION_H_ */ |