summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/create/perform.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-06-06 12:19:11 +0000
committerjkh <jkh@FreeBSD.org>1997-06-06 12:19:11 +0000
commit950dcc5c24cddc6c6edeef1df3340a1305209e8b (patch)
tree0710027785ab35af569ecc606609c94d2858b56e /usr.sbin/pkg_install/create/perform.c
parent041a050592a40a39317e2e28a6df2312d1af501b (diff)
downloadFreeBSD-src-950dcc5c24cddc6c6edeef1df3340a1305209e8b.zip
FreeBSD-src-950dcc5c24cddc6c6edeef1df3340a1305209e8b.tar.gz
Add support for srcdir overrides.
Diffstat (limited to 'usr.sbin/pkg_install/create/perform.c')
-rw-r--r--usr.sbin/pkg_install/create/perform.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c
index 83c4f35..428c0cd 100644
--- a/usr.sbin/pkg_install/create/perform.c
+++ b/usr.sbin/pkg_install/create/perform.c
@@ -1,5 +1,5 @@
#ifndef lint
-static const char *rcsid = "$Id$";
+static const char *rcsid = "$Id: perform.c,v 1.34 1997/02/22 16:09:28 peter Exp $";
#endif
/*
@@ -83,6 +83,14 @@ pkg_perform(char **pkgs)
if (Verbose && !PlistOnly)
printf(".\n");
}
+
+ /* If a SrcDir override is set, add it now */
+ if (SrcDir) {
+ if (Verbose && !PlistOnly)
+ printf("Using SrcDir value of %s\n", SrcDir);
+ add_plist(&plist, PLIST_SRC, SrcDir);
+ }
+
/* Slurp in the packing list */
read_plist(&plist, pkg_in);
OpenPOWER on IntegriCloud