From 126dda9bde7682b3e77b54654e47d8164c51bc03 Mon Sep 17 00:00:00 2001 From: xtraeme Date: Thu, 4 Aug 2005 22:21:33 +0000 Subject: Bump to 20050804: When using the -M flag, look in Makefile and Makefile.common files. Ok'ed by Peter Postma. --- pkgtools/pkgfind/Makefile | 4 ++-- pkgtools/pkgfind/files/pkgfind.c | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'pkgtools') 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; } -- cgit v1.2.3