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 | 02b6a65f1f557cd8a4105a5367d01df316da6832 (patch) | |
tree | 12d0ae91553be8112402b6eb1ad97ce0c0045b22 | |
parent | daa1489e5ab6da6e77c4bb9a560c66f6f123579b (diff) | |
download | pkgsrc-02b6a65f1f557cd8a4105a5367d01df316da6832.tar.gz |
Shut up warnings about 6.0 packages on 6.0.1 (and similar).
Welcome to 20130131.
-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_ */ |