pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files Don't use the build time ve...
details: https://anonhg.NetBSD.org/pkgsrc/rev/15f3ed050c4f
branches: trunk
changeset: 535177:15f3ed050c4f
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Nov 08 23:24:56 2007 +0000
description:
Don't use the build time version to find packages, we want to pick up
the newest version. Bump version to 20071109.
diffstat:
pkgtools/pkg_install/files/add/perform.c | 23 +++++------------------
pkgtools/pkg_install/files/lib/version.h | 4 ++--
2 files changed, 7 insertions(+), 20 deletions(-)
diffs (78 lines):
diff -r 42d2ce15758b -r 15f3ed050c4f pkgtools/pkg_install/files/add/perform.c
--- a/pkgtools/pkg_install/files/add/perform.c Thu Nov 08 21:56:46 2007 +0000
+++ b/pkgtools/pkg_install/files/add/perform.c Thu Nov 08 23:24:56 2007 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: perform.c,v 1.65 2007/11/01 23:08:29 rillig Exp $ */
+/* $NetBSD: perform.c,v 1.66 2007/11/08 23:24:56 joerg Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -14,7 +14,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.65 2007/11/01 23:08:29 rillig Exp $");
+__RCSID("$NetBSD: perform.c,v 1.66 2007/11/08 23:24:56 joerg Exp $");
#endif
#endif
@@ -386,7 +386,6 @@
char *buildinfo[BI_ENUM_COUNT];
int replacing = 0;
char dbdir[MaxPathSize];
- const char *exact;
const char *tmppkg;
FILE *cfile;
int errc, err_prescan;
@@ -761,17 +760,11 @@
/* Now check the packing list for dependencies */
- for (exact = NULL, p = Plist.head; p; p = p->next) {
+ for (p = Plist.head; p; p = p->next) {
char *best_installed;
- if (p->type == PLIST_BLDDEP) {
- exact = p->name;
+ if (p->type != PLIST_PKGDEP)
continue;
- }
- if (p->type != PLIST_PKGDEP) {
- exact = NULL;
- continue;
- }
if (Verbose)
printf("Package `%s' depends on `%s'.\n", PkgName, p->name);
@@ -789,13 +782,7 @@
int done = 0;
int errc0 = 0;
- if (exact != NULL) {
- /* first try the exact name, from the @blddep */
- done = installprereq(exact, &errc0, (Replace > 1) ? 2 : 0);
- }
- if (!done) {
- done = installprereq(p->name, &errc0, (Replace > 1) ? 2 : 0);
- }
+ done = installprereq(p->name, &errc0, (Replace > 1) ? 2 : 0);
if (!done && !Force) {
errc += errc0;
}
diff -r 42d2ce15758b -r 15f3ed050c4f pkgtools/pkg_install/files/lib/version.h
--- a/pkgtools/pkg_install/files/lib/version.h Thu Nov 08 21:56:46 2007 +0000
+++ b/pkgtools/pkg_install/files/lib/version.h Thu Nov 08 23:24:56 2007 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: version.h,v 1.85 2007/11/08 19:39:42 joerg Exp $ */
+/* $NetBSD: version.h,v 1.86 2007/11/08 23:24:56 joerg 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 "20071108"
+#define PKGTOOLS_VERSION "20071109"
#endif /* _INST_LIB_VERSION_H_ */
Home |
Main Index |
Thread Index |
Old Index