From 415e230a7f0874206d4bbe2662c9f9cbf7e4c307 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Wed, 16 Mar 2011 14:55:08 +0200 Subject: db, cache: automatically remount cache read-write when needed .. and back to read-only after finishing with modifications. fixes #512 --- src/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cache.c') diff --git a/src/cache.c b/src/cache.c index f827cc1..8cee1e4 100644 --- a/src/cache.c +++ b/src/cache.c @@ -172,7 +172,7 @@ static struct apk_applet apk_cache = { "making /etc/apk/cache a symlink to the directory (on boot " "media) that will be used as package cache.", .arguments = "sync | clean | download", - .open_flags = APK_OPENF_READ|APK_OPENF_NO_SCRIPTS|APK_OPENF_NO_INSTALLED, + .open_flags = APK_OPENF_READ|APK_OPENF_NO_SCRIPTS|APK_OPENF_NO_INSTALLED|APK_OPENF_CACHE_WRITE, .main = cache_main, }; -- cgit v1.2.3-60-g2f50