aboutsummaryrefslogtreecommitdiff
path: root/qpkg.c
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-04-25 09:56:48 +0200
committerFabian Groffen <grobian@gentoo.org>2019-04-25 09:56:48 +0200
commit1cd2f17f673a790caaa967341b7f2b1072968e51 (patch)
tree0c4d9cfc77a88716c40b3d4edd33b3b2c137cb44 /qpkg.c
parentlibq/cache: add mode for plain ebuilds (not using any cache) (diff)
downloadportage-utils-1cd2f17f673a790caaa967341b7f2b1072968e51.tar.gz
portage-utils-1cd2f17f673a790caaa967341b7f2b1072968e51.tar.bz2
portage-utils-1cd2f17f673a790caaa967341b7f2b1072968e51.zip
reinitialize_flat: remove
remove the flat cache (just a file list of directory contents) - it can easily get stale - traversing a directory isn't that expensive nowadays (and we don't do VAX) the code should switch to using libq/cache instead Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qpkg.c')
-rw-r--r--qpkg.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/qpkg.c b/qpkg.c
index 37f1cb71..99421842 100644
--- a/qpkg.c
+++ b/qpkg.c
@@ -147,9 +147,7 @@ qpkg_clean(char *dirp)
const char *overlay;
array_for_each(overlays, n, overlay) {
- fp = fopen(initialize_flat(overlay, CACHE_EBUILD, false), "re");
- if (fp == NULL)
- continue;
+ /* FIXME: use libq/cache here */ continue;
size_t buflen;
char *buf;