summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-05-01 19:44:11 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-05-01 19:44:11 +0000
commit823876a1ef8760456a5a01963ecf931005676c35 (patch)
tree6b1bc765f1a116c89919d5194b8eddf818c1cbc5 /usr.sbin
parent2595982060f5845dbcd1d832af0833d5e6c9c10e (diff)
- finish removing last pieces of in-place extraction.
- fix long time bug: call extract_plist even if not doing installation for real, since extract_plist knows how to handle that.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_install/add/perform.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/usr.sbin/pkg_install/add/perform.c b/usr.sbin/pkg_install/add/perform.c
index 2c2b0c7d5ae..8bc761330ce 100644
--- a/usr.sbin/pkg_install/add/perform.c
+++ b/usr.sbin/pkg_install/add/perform.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: perform.c,v 1.14 2000/04/28 22:13:54 espie Exp $ */
+/* $OpenBSD: perform.c,v 1.15 2000/05/01 19:44:10 espie Exp $ */
#ifndef lint
-static const char *rcsid = "$OpenBSD: perform.c,v 1.14 2000/04/28 22:13:54 espie Exp $";
+static const char *rcsid = "$OpenBSD: perform.c,v 1.15 2000/05/01 19:44:10 espie Exp $";
#endif
/*
@@ -83,13 +83,11 @@ pkg_do(char *pkg)
int code;
plist_t *p;
struct stat sb;
- int inPlace;
code = 0;
zapLogDir = 0;
LogDir[0] = '\0';
strcpy(playpen, FirstPen);
- inPlace = 0;
dbdir = (tmp = getenv(PKG_DBDIR)) ? tmp : DEF_LOG_DIR;
/* Are we coming in for a second pass, everything already extracted? */
@@ -175,7 +173,7 @@ pkg_do(char *pkg)
* extracted the full file, anyway.
*/
- if (!extract && !inPlace && min_free(playpen) < sb.st_size * 4) {
+ if (!extract && min_free(playpen) < sb.st_size * 4) {
warnx("projected size of %ld exceeds available free space\n"
"Please set your PKG_TMPDIR variable to point to a"
"location with more\n"
@@ -185,10 +183,6 @@ pkg_do(char *pkg)
goto bomb;
}
- /* If this is a direct extract and we didn't want it, stop now */
- if (inPlace && Fake)
- goto success;
-
/* Finally unpack the whole mess. If extract is null we already
did so so don't bother doing it again. */
if (extract && unpack(pkg_fullname, NULL)) {
@@ -406,9 +400,7 @@ pkg_do(char *pkg)
}
}
- /* Now finally extract the entire show if we're not going direct */
- if (!inPlace && !Fake)
- extract_plist(".", &Plist);
+ extract_plist(".", &Plist);
if (!Fake && fexists(MTREE_FNAME)) {
if (Verbose)