From 816c3045cd490269e35ad43618b8e97b3492ea55 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 26 Feb 2009 12:52:43 +0000 Subject: pkg_install-20090226: Always try to preserve the +PRESERVE file from the old package, even when the new one has one as well. This fixes the update case for the special case of pkg_install itself as reported by tron@. --- pkgtools/pkg_install/files/add/perform.c | 7 +++---- pkgtools/pkg_install/files/lib/version.h | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'pkgtools/pkg_install') diff --git a/pkgtools/pkg_install/files/add/perform.c b/pkgtools/pkg_install/files/add/perform.c index c46384d1d97..eacd16dce54 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.78 2009/02/13 13:19:12 joerg Exp $ */ +/* $NetBSD: perform.c,v 1.79 2009/02/26 12:52:43 joerg Exp $ */ #if HAVE_CONFIG_H #include "config.h" #endif @@ -6,7 +6,7 @@ #if HAVE_SYS_CDEFS_H #include #endif -__RCSID("$NetBSD: perform.c,v 1.78 2009/02/13 13:19:12 joerg Exp $"); +__RCSID("$NetBSD: perform.c,v 1.79 2009/02/26 12:52:43 joerg Exp $"); /*- * Copyright (c) 2003 Grant Beattie @@ -1111,8 +1111,7 @@ start_replacing(struct pkg_task *pkg) if (preserve_meta_data_file(pkg, REQUIRED_BY_FNAME)) return -1; - if (pkg->meta_data.meta_preserve == NULL && - preserve_meta_data_file(pkg, PRESERVE_FNAME)) + if (preserve_meta_data_file(pkg, PRESERVE_FNAME)) return -1; if (pkg->meta_data.meta_installed_info == NULL && diff --git a/pkgtools/pkg_install/files/lib/version.h b/pkgtools/pkg_install/files/lib/version.h index d7eb758d0ff..17b36c4589f 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.113 2009/02/25 16:29:08 joerg Exp $ */ +/* $NetBSD: version.h,v 1.114 2009/02/26 12:52:43 joerg 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 "20090225" +#define PKGTOOLS_VERSION "20090226" #endif /* _INST_LIB_VERSION_H_ */ -- cgit v1.2.3