summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/info/perform.c
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2006-01-09 18:27:21 +0000
committerflz <flz@FreeBSD.org>2006-01-09 18:27:21 +0000
commitc97d1806500049ffe6c3e8091ab4cfb4c997281e (patch)
tree1d907422a2b7e64739038fb6d8d33e072dc613d3 /usr.sbin/pkg_install/info/perform.c
parent93d7e294fcdb0d064bd15e9208026d662d5c43ce (diff)
downloadFreeBSD-src-c97d1806500049ffe6c3e8091ab4cfb4c997281e.zip
FreeBSD-src-c97d1806500049ffe6c3e8091ab4cfb4c997281e.tar.gz
Add -K option to pkg_add and pkg_info.
This option saves packages to PKGDIR (if defined or current directory by default) as they are downloaded. Silent a warning when -n is used and package has a +DISPLAY file. Approved by: krion MFC after: 1 week
Diffstat (limited to 'usr.sbin/pkg_install/info/perform.c')
-rw-r--r--usr.sbin/pkg_install/info/perform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/info/perform.c b/usr.sbin/pkg_install/info/perform.c
index 960641b..3f3ceb0 100644
--- a/usr.sbin/pkg_install/info/perform.c
+++ b/usr.sbin/pkg_install/info/perform.c
@@ -100,7 +100,7 @@ pkg_do(char *pkg)
int code = 0;
if (isURL(pkg)) {
- if ((cp = fileGetURL(NULL, pkg)) != NULL) {
+ if ((cp = fileGetURL(NULL, pkg, KeepPackage)) != NULL) {
strcpy(fname, cp);
isTMP = TRUE;
}
OpenPOWER on IntegriCloud