aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-05-19 12:17:05 -0400
committerMike Frysinger <vapier@gentoo.org>2015-05-19 12:17:05 -0400
commit357a4c2d329ccf46cddb96e07c9308105e977fd3 (patch)
treeca4d09389e17a83a315f957c75d098506545af76 /qsearch.c
parentqgrep/qpkg: use the cache file given (diff)
downloadportage-utils-357a4c2d329ccf46cddb96e07c9308105e977fd3.tar.gz
portage-utils-357a4c2d329ccf46cddb96e07c9308105e977fd3.tar.bz2
portage-utils-357a4c2d329ccf46cddb96e07c9308105e977fd3.zip
cache: rework and move to /var/cache/edb
Since we want the portdir to be read-only when possible, move our cache files to /var/cache/edb. This means the cache regeneration logic isn't as robust (as we can't rely on rsync deleting it), but so be it. We can see about improving this in the future. URL: https://bugs.gentoo.org/548052 Reported-by: Martin Väth <martin@mvath.de>
Diffstat (limited to 'qsearch.c')
-rw-r--r--qsearch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qsearch.c b/qsearch.c
index e1285a3..ce36df2 100644
--- a/qsearch.c
+++ b/qsearch.c
@@ -88,7 +88,7 @@ int qsearch_main(int argc, char **argv)
}
#endif
last[0] = 0;
- fp = fopen(initialize_flat(search_cache), "r");
+ fp = fopen(initialize_flat(search_cache, false), "r");
if (!fp)
return 1;