aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-11-26 05:51:40 -0500
committerMike Frysinger <vapier@gentoo.org>2015-11-26 05:51:40 -0500
commitdab9ae7d90f2b51f2d1abb4700b025c14ab77ef5 (patch)
tree3fe1e123552548765060cf694df97a689f8f5f1b
parentcache: support multiple overlays (diff)
downloadportage-utils-dab9ae7d.tar.gz
portage-utils-dab9ae7d.tar.bz2
portage-utils-dab9ae7d.zip
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
-rw-r--r--qpkg.c9
1 files changed, 8 insertions, 1 deletions
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;