summaryrefslogtreecommitdiff
path: root/pkgtools/pkgfind
diff options
context:
space:
mode:
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;
}