From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2C0C61384B4 for ; Thu, 26 Nov 2015 10:53:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8D23921C170; Thu, 26 Nov 2015 10:52:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0B3B921C170 for ; Thu, 26 Nov 2015 10:52:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2C0A933FA71 for ; Thu, 26 Nov 2015 10:52:26 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D90FA612 for ; Thu, 26 Nov 2015 10:52:24 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1448535100.dab9ae7d90f2b51f2d1abb4700b025c14ab77ef5.vapier@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: qpkg.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: dab9ae7d90f2b51f2d1abb4700b025c14ab77ef5 X-VCS-Branch: master Date: Thu, 26 Nov 2015 10:52:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0963322a-15f6-4c59-9ac6-bf06a503160d X-Archives-Hash: 5d8eebd03e9390b6268de6eab53f1e8b commit: dab9ae7d90f2b51f2d1abb4700b025c14ab77ef5 Author: Mike Frysinger gentoo org> AuthorDate: Thu Nov 26 10:51:40 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Thu Nov 26 10:51:40 2015 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=dab9ae7d qpkg: add multiple overlay support This one is easy as it doesn't actually scan portdir and the cache logic is simple & self contained. URL: https://bugs.gentoo.org/553260 qpkg.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qpkg.c b/qpkg.c index 50d79f6..2c9e774 100644 --- a/qpkg.c +++ b/qpkg.c @@ -122,7 +122,14 @@ int qpkg_clean(char *dirp) } if (eclean) { - if ((fp = fopen(initialize_ebuild_flat(), "r")) != NULL) { + size_t n; + const char *overlay; + + array_for_each(overlays, n, overlay) { + fp = fopen(initialize_flat(overlay, CACHE_EBUILD, false), "re"); + if (fp == NULL) + continue; + size_t buflen; char *buf;