diff options
author | 2000-05-01 19:44:10 +0000 | |
---|---|---|
committer | 2000-05-01 19:44:10 +0000 | |
commit | 196f2dd9379ae70dbcda22a2e428977a79d508f5 (patch) | |
tree | 0e501a709cbb8ece4d6753a7f7c45ab7faead1ce | |
parent | another RCC host bridge with a pci behind it (diff) | |
download | wireguard-openbsd-196f2dd9379ae70dbcda22a2e428977a79d508f5.tar.xz wireguard-openbsd-196f2dd9379ae70dbcda22a2e428977a79d508f5.zip |
- 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.
-rw-r--r-- | usr.sbin/pkg_install/add/perform.c | 16 |
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) |