summaryrefslogtreecommitdiff
path: root/pkgtools/pkgfind
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2005-08-04 22:21:33 +0000
committerxtraeme <xtraeme@pkgsrc.org>2005-08-04 22:21:33 +0000
commit126dda9bde7682b3e77b54654e47d8164c51bc03 (patch)
tree55d6f94fe6ff8a3d03d8c31a29f2564068c0ff41 /pkgtools/pkgfind
parent0c26db2d9424f7d15b4ff4901d4c5c3afe0913c0 (diff)
downloadpkgsrc-126dda9bde7682b3e77b54654e47d8164c51bc03.tar.gz
Bump to 20050804:
When using the -M flag, look in Makefile and Makefile.common files. Ok'ed by Peter Postma.
Diffstat (limited to 'pkgtools/pkgfind')
-rw-r--r--pkgtools/pkgfind/Makefile4
-rw-r--r--pkgtools/pkgfind/files/pkgfind.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/pkgtools/pkgfind/Makefile b/pkgtools/pkgfind/Makefile
index a30d506f448..8b1b8159d2c 100644
--- a/pkgtools/pkgfind/Makefile
+++ b/pkgtools/pkgfind/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.12 2005/05/08 15:26:36 peter Exp $
+# $NetBSD: Makefile,v 1.13 2005/08/04 22:21:33 xtraeme Exp $
-DISTNAME= pkgfind-20050508
+DISTNAME= pkgfind-20050804
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/pkgtools/pkgfind/files/pkgfind.c b/pkgtools/pkgfind/files/pkgfind.c
index 32f53059b22..90ac2349105 100644
--- a/pkgtools/pkgfind/files/pkgfind.c
+++ b/pkgtools/pkgfind/files/pkgfind.c
@@ -160,8 +160,12 @@ pkgfind(const char *path, const char *pkg, int count)
continue;
if (search != NULL) {
(void)strncat(tmp, "/Makefile", sizeof(tmp));
- if (getstring(tmp, search, &text) == 0)
- continue;
+ if (getstring(tmp, search, &text) == 0) {
+ (void)strncat(tmp, ".common",
+ sizeof(tmp));
+ if (getstring(tmp, search, &text) == 0)
+ continue;
+ }
} else {
text = list[j]->d_name;
}