aboutsummaryrefslogtreecommitdiff
path: root/quse.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 /quse.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 'quse.c')
-rw-r--r--quse.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/quse.c b/quse.c
index c93be873..c5f44ed3 100644
--- a/quse.c
+++ b/quse.c
@@ -252,7 +252,7 @@ quse_describe_flag(const char *overlay, unsigned int ind, unsigned int argc, cha
int quse_main(int argc, char **argv)
{
FILE *fp;
- const char *cache_file;
+ const char *cache_file = NULL;
char *p;
char buf0[_Q_PATH_MAX];
@@ -305,9 +305,7 @@ int quse_main(int argc, char **argv)
array_for_each(overlays, n, overlay) {
int overlay_fd;
- cache_file = initialize_flat(overlay, CACHE_EBUILD, false);
-
- if ((fp = fopen(cache_file, "re")) == NULL) {
+ /* FIXME: use libq/cache here */ if (1 == 1) {
warnp("could not read cache: %s", cache_file);
continue;
}