summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/dist.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-04-30 22:40:06 +0000
committerobrien <obrien@FreeBSD.org>2002-04-30 22:40:06 +0000
commit451e89b13e6de1a22c9029acdbe0565ca18f560b (patch)
tree04291a07fc7c8d7c5c9cdbcb74819128b46fc53c /usr.sbin/sysinstall/dist.c
parent968fe15c4ddd29119f7160321c6530f8df1bd320 (diff)
downloadFreeBSD-src-451e89b13e6de1a22c9029acdbe0565ca18f560b.zip
FreeBSD-src-451e89b13e6de1a22c9029acdbe0565ca18f560b.tar.gz
Add the ability to use Bzip'ed packages.
Also add the ability to use Bzip'ed distributions -- but this is exclusive of being able to use Gzip'ed distributions. Sponsored by: FreeBSD Mall, Inc.
Diffstat (limited to 'usr.sbin/sysinstall/dist.c')
-rw-r--r--usr.sbin/sysinstall/dist.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c
index 722fe67..cea0f09 100644
--- a/usr.sbin/sysinstall/dist.c
+++ b/usr.sbin/sysinstall/dist.c
@@ -641,10 +641,11 @@ distExtract(char *parent, Distribution *me)
}
else {
/* Try to get the distribution as a single file */
- snprintf(buf, sizeof buf, "%s/%s.tgz", path, dist);
+ snprintf(buf, sizeof buf, "%s/%s.%s", path, dist,
+ USE_GZIP ? "tgz" : "tbz");
/*
- * Passing TRUE as 3rd parm to get routine makes this a "probing" get, for which errors
- * are not considered too significant.
+ * Passing TRUE as 3rd parm to get routine makes this a "probing"
+ * get, for which errors are not considered too significant.
*/
getsingle:
fp = DEVICE_GET(mediaDevice, buf, TRUE);
OpenPOWER on IntegriCloud