diff options
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 d707ec6..e1ef7a3 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 |