diff options
author | Fabian Groffen <grobian@gentoo.org> | 2019-04-25 09:56:48 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2019-04-25 09:56:48 +0200 |
commit | 1cd2f17f673a790caaa967341b7f2b1072968e51 (patch) | |
tree | 0c4d9cfc77a88716c40b3d4edd33b3b2c137cb44 /qpkg.c | |
parent | libq/cache: add mode for plain ebuilds (not using any cache) (diff) | |
download | portage-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |