summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_install/files/add/perform.c9
-rw-r--r--pkgtools/pkg_install/files/lib/version.h4
2 files changed, 9 insertions, 4 deletions
diff --git a/pkgtools/pkg_install/files/add/perform.c b/pkgtools/pkg_install/files/add/perform.c
index 33f4c36f631..614d897170b 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.6 2003/04/17 13:50:54 grant Exp $ */
+/* $NetBSD: perform.c,v 1.7 2003/04/23 10:27:39 seb Exp $ */
#if 0
#include <sys/cdefs.h>
@@ -6,7 +6,7 @@
#if 0
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.44 1997/10/13 15:03:46 jkh Exp";
#else
-__RCSID("$NetBSD: perform.c,v 1.6 2003/04/17 13:50:54 grant Exp $");
+__RCSID("$NetBSD: perform.c,v 1.7 2003/04/23 10:27:39 seb Exp $");
#endif
#endif
#endif
@@ -506,6 +506,11 @@ ignore_upgrade_depends_check:
if ((s = strpbrk(p->name, "<>")) != NULL) {
skip = 0;
+ } else if (((s = strstr(p->name, "-[0-9]*")) != NULL) &&
+ (*(s + sizeof("-[0-9]*") - 1) == '\0')) {
+ /* -[0-9]* already present so no need to */
+ /* add it a second time */
+ skip = -1;
} else if ((s = strrchr(p->name, '-')) != NULL) {
skip = 1;
}
diff --git a/pkgtools/pkg_install/files/lib/version.h b/pkgtools/pkg_install/files/lib/version.h
index aa94f308392..eb23731d242 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.8 2003/04/17 14:00:55 grant Exp $ */
+/* $NetBSD: version.h,v 1.9 2003/04/23 10:27:40 seb Exp $ */
/*
* Copyright (c) 2001 Thomas Klausner. All rights reserved.
@@ -33,6 +33,6 @@
#ifndef _INST_LIB_VERSION_H_
#define _INST_LIB_VERSION_H_
-#define PKGTOOLS_VERSION "20030417"
+#define PKGTOOLS_VERSION "20030423"
#endif /* _INST_LIB_VERSION_H_ */