diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-11-26 05:51:40 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-11-26 05:51:40 -0500 |
commit | dab9ae7d90f2b51f2d1abb4700b025c14ab77ef5 (patch) | |
tree | 3fe1e123552548765060cf694df97a689f8f5f1b | |
parent | cache: support multiple overlays (diff) | |
download | portage-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.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; |