diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2002-08-25 01:00:16 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2002-08-25 01:00:16 +0000 |
commit | 1ab94a83c2e719fa75cf22f2b170d9b338ccb53c (patch) | |
tree | 9a9fdba70dc305eae2eea69d80cbff7dd2c7c9da /usr.sbin/pkg_install/add/perform.c | |
parent | fff6062ab6ecf009527893e09ed3e9f689c16bbc (diff) |
Find remaining hardcoded gzip bits and change to bzip2 bits.
Mark with XXX so someone that cares about being able to handle either
bziped or gziped packages knows where the remaining nits are.
Notes
Notes:
svn path=/head/; revision=102383
Diffstat (limited to 'usr.sbin/pkg_install/add/perform.c')
-rw-r--r-- | usr.sbin/pkg_install/add/perform.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/add/perform.c b/usr.sbin/pkg_install/add/perform.c index d707ec6d8696..e1ef7a340e1d 100644 --- a/usr.sbin/pkg_install/add/perform.c +++ b/usr.sbin/pkg_install/add/perform.c @@ -97,7 +97,7 @@ pkg_do(char *pkg) } /* Nope - do it now */ else { - /* Is it an ftp://foo.bar.baz/file.tgz specification? */ + /* Is it an ftp://foo.bar.baz/file.t[bg]z specification? */ if (isURL(pkg)) { if (!(Home = fileGetURL(NULL, pkg))) { warnx("unable to fetch '%s' by URL", pkg); @@ -267,7 +267,8 @@ pkg_do(char *pkg) if (!Fake) { if (!isURL(pkg) && !getenv("PKG_ADD_BASE")) { - snprintf(path, FILENAME_MAX, "%s/%s.tgz", getenv("_TOP"), p->name); + /* XXX: need to handle .tgz also */ + snprintf(path, FILENAME_MAX, "%s/%s.tbz", getenv("_TOP"), p->name); if (fexists(path)) cp = path; else |