summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/lib
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-04-02 10:13:41 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-04-02 10:13:41 +0000
commit60e34072a6678fce670535817b9a40a572bdd9a7 (patch)
treebdec7c8c317f84de487bb2a5ef6c39d8a705133f /usr.sbin/pkg_install/lib
parentc368ef1034dd7798997f9ead0edef6d1c55df48d (diff)
Handle for newdepend.
- recognize the keyword, - pass all packing lists to `pkg dependencies solve' for rewriting. pkg dependencies solve is a no-op in the absence of newdepends. With newdepends, it rewrites @newdepends -> @pkgdep on the fly, depending on what's actually installed on the machine.
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-rw-r--r--usr.sbin/pkg_install/lib/lib.h5
-rw-r--r--usr.sbin/pkg_install/lib/plist.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/pkg_install/lib/lib.h b/usr.sbin/pkg_install/lib/lib.h
index 4d7c50ebbfd..7a349d18b69 100644
--- a/usr.sbin/pkg_install/lib/lib.h
+++ b/usr.sbin/pkg_install/lib/lib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: lib.h,v 1.6 2000/03/24 00:20:04 espie Exp $ */
+/* $OpenBSD: lib.h,v 1.7 2001/04/02 10:13:40 espie Exp $ */
/*
* FreeBSD install - a package for the installation and maintainance
@@ -103,7 +103,8 @@ typedef enum pl_ent_t {
PLIST_DIR_RM,
PLIST_IGNORE_INST,
PLIST_OPTION,
- PLIST_PKGCFL
+ PLIST_PKGCFL,
+ PLIST_NEWDEP
} pl_ent_t;
/* Types */
diff --git a/usr.sbin/pkg_install/lib/plist.c b/usr.sbin/pkg_install/lib/plist.c
index 9c243f0fc69..99b382b5fd1 100644
--- a/usr.sbin/pkg_install/lib/plist.c
+++ b/usr.sbin/pkg_install/lib/plist.c
@@ -1,6 +1,6 @@
-/* $OpenBSD: plist.c,v 1.9 2000/04/28 22:13:55 espie Exp $ */
+/* $OpenBSD: plist.c,v 1.10 2001/04/02 10:13:40 espie Exp $ */
#ifndef lint
-static const char *rcsid = "$OpenBSD: plist.c,v 1.9 2000/04/28 22:13:55 espie Exp $";
+static const char *rcsid = "$OpenBSD: plist.c,v 1.10 2001/04/02 10:13:40 espie Exp $";
#endif
/*
@@ -54,6 +54,7 @@ static cmd_t cmdv[] = {
{ "mtree", PLIST_MTREE, 1 },
{ "dirrm", PLIST_DIR_RM, 1 },
{ "option", PLIST_OPTION, 1 },
+ { "newdepend", PLIST_NEWDEP, 1 },
{ NULL, FAIL, 0 }
};