Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/pkg_install/info Fix -r: Show REQ/+REQUIRE file for...
details: https://anonhg.NetBSD.org/src/rev/9c614bedd0b9
branches: trunk
changeset: 506980:9c614bedd0b9
user: wiz <wiz%NetBSD.org@localhost>
date: Sat Mar 10 18:41:45 2001 +0000
description:
Fix -r: Show REQ/+REQUIRE file for a package, if existing. Fixes pkg/12210.
Patch by Hubert Feyrer.
Note: REQ support has been taken out of bsd.pkg.mk in v1.628; since
pkg_create still supports it, we should support it in pkg_info too,
though.
diffstat:
usr.sbin/pkg_install/info/perform.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r f9ea9ed1c312 -r 9c614bedd0b9 usr.sbin/pkg_install/info/perform.c
--- a/usr.sbin/pkg_install/info/perform.c Sat Mar 10 18:39:04 2001 +0000
+++ b/usr.sbin/pkg_install/info/perform.c Sat Mar 10 18:41:45 2001 +0000
@@ -1,11 +1,11 @@
-/* $NetBSD: perform.c,v 1.36 2001/03/10 13:18:09 wiz Exp $ */
+/* $NetBSD: perform.c,v 1.37 2001/03/10 18:41:45 wiz Exp $ */
#include <sys/cdefs.h>
#ifndef lint
#if 0
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.23 1997/10/13 15:03:53 jkh Exp";
#else
-__RCSID("$NetBSD: perform.c,v 1.36 2001/03/10 13:18:09 wiz Exp $");
+__RCSID("$NetBSD: perform.c,v 1.37 2001/03/10 18:41:45 wiz Exp $");
#endif
#endif
@@ -200,6 +200,9 @@
if ((Flags & SHOW_DEINSTALL) && fexists(DEINSTALL_FNAME)) {
show_file("De-Install script:\n", DEINSTALL_FNAME);
}
+ if ((Flags & SHOW_REQUIRE) && fexists(REQUIRE_FNAME)) {
+ show_file("Require script:\n", REQUIRE_FNAME);
+ }
if ((Flags & SHOW_MTREE) && fexists(MTREE_FNAME)) {
show_file("mtree file:\n", MTREE_FNAME);
}
Home |
Main Index |
Thread Index |
Old Index