summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/info
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2003-04-17 09:56:05 +0000
committerkris <kris@FreeBSD.org>2003-04-17 09:56:05 +0000
commit7ec422366401f961c808e40fd6b4c95c955ea58f (patch)
tree8cc602fa2181b3251a7557cd50f7b5898169f909 /usr.sbin/pkg_install/info
parent52a551e4c5e52ca9df95a65b82e6e31e39f27648 (diff)
downloadFreeBSD-src-7ec422366401f961c808e40fd6b4c95c955ea58f.zip
FreeBSD-src-7ec422366401f961c808e40fd6b4c95c955ea58f.tar.gz
* Add explicit conflict-checking to the package tools. Packages can
register a list of other packages with which they conflict (via the -C option to pkg_create), and they will refuse to install (unless -f is specified) if one of the listed packages is already present. * Update documentation for the new feature as well as fleshing out some existing documentation. * Bump PKG_INSTALL_VERSION so this feature can be tested for. Submitted by: Sergey Matveychuk <sem@ciam.ru> PR: bin/47145 MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/pkg_install/info')
-rw-r--r--usr.sbin/pkg_install/info/show.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/info/show.c b/usr.sbin/pkg_install/info/show.c
index 4d397d8..205f865 100644
--- a/usr.sbin/pkg_install/info/show.c
+++ b/usr.sbin/pkg_install/info/show.c
@@ -158,6 +158,10 @@ show_plist(const char *title, Package *plist, plist_t type, Boolean showall)
"\tdependency origin: %s\n", p->name);
break;
+ case PLIST_CONFLICTS:
+ printf(Quiet ? "@conflicts %s\n" : "Conflicts: %s\n", p->name);
+ break;
+
case PLIST_MTREE:
printf(Quiet ? "@mtree %s\n" : "\tPackage mtree file: %s\n", p->name);
break;
OpenPOWER on IntegriCloud