commit:     dab9ae7d90f2b51f2d1abb4700b025c14ab77ef5
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 26 10:51:40 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> 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;
 

Reply via email to