summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/lib
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-10-18 05:54:17 +0000
committerjkh <jkh@FreeBSD.org>1997-10-18 05:54:17 +0000
commitfbcce1e3041d8c5bd2f429d8911bc2df3927ef05 (patch)
tree46790b53c6eca9fa154ec729175491341824eb49 /usr.sbin/pkg_install/lib
parent835fbd1d3aba06858f975edde71c178ae29b1f4d (diff)
downloadFreeBSD-src-fbcce1e3041d8c5bd2f429d8911bc2df3927ef05.zip
FreeBSD-src-fbcce1e3041d8c5bd2f429d8911bc2df3927ef05.tar.gz
- do string-magic on the right variable when trying
to find dependent packages on the local disk (i.e. package given as filename, not URL) - document $PKG_PATH - use -v on pkg_add for dependent packages Submitted by: hubertf@NetBSD.ORG Obtained from: NetBSD
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-rw-r--r--usr.sbin/pkg_install/lib/file.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c
index 8bf27b6..ef52dca 100644
--- a/usr.sbin/pkg_install/lib/file.c
+++ b/usr.sbin/pkg_install/lib/file.c
@@ -1,6 +1,6 @@
#ifndef lint
static const char rcsid[] =
- "$Id: file.c,v 1.28 1997/07/01 06:13:50 jkh Exp $";
+ "$Id: file.c,v 1.29 1997/10/08 07:47:54 charnier Exp $";
#endif
/*
@@ -294,15 +294,16 @@ fileFindByPath(char *base, char *fname)
if (base) {
strcpy(tmp, base);
- cp = strrchr(fname, '/');
+ cp = strrchr(tmp, '/');
if (cp) {
*cp = '\0'; /* chop name */
- cp = strrchr(fname, '/');
+ cp = strrchr(tmp, '/');
}
if (cp) {
*(cp + 1) = '\0';
strcat(cp, "All/");
strcat(cp, fname);
+ strcat(cp, ".tgz");
if (fexists(tmp))
return tmp;
}
OpenPOWER on IntegriCloud