Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage-utils:master commit in: /
Date: Thu, 26 Nov 2015 10:53:47
Message-Id: 1448535100.dab9ae7d90f2b51f2d1abb4700b025c14ab77ef5.vapier@gentoo
1 commit: dab9ae7d90f2b51f2d1abb4700b025c14ab77ef5
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 26 10:51:40 2015 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 26 10:51:40 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=dab9ae7d
7
8 qpkg: add multiple overlay support
9
10 This one is easy as it doesn't actually scan portdir and the cache
11 logic is simple & self contained.
12
13 URL: https://bugs.gentoo.org/553260
14
15 qpkg.c | 9 ++++++++-
16 1 file changed, 8 insertions(+), 1 deletion(-)
17
18 diff --git a/qpkg.c b/qpkg.c
19 index 50d79f6..2c9e774 100644
20 --- a/qpkg.c
21 +++ b/qpkg.c
22 @@ -122,7 +122,14 @@ int qpkg_clean(char *dirp)
23 }
24
25 if (eclean) {
26 - if ((fp = fopen(initialize_ebuild_flat(), "r")) != NULL) {
27 + size_t n;
28 + const char *overlay;
29 +
30 + array_for_each(overlays, n, overlay) {
31 + fp = fopen(initialize_flat(overlay, CACHE_EBUILD, false), "re");
32 + if (fp == NULL)
33 + continue;
34 +
35 size_t buflen;
36 char *buf;