summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-03-16 14:55:08 +0200
committerTimo Teräs <timo.teras@iki.fi>2011-03-16 14:56:13 +0200
commit415e230a7f0874206d4bbe2662c9f9cbf7e4c307 (patch)
tree173b2515647bac6fa27dba95575ca66a2511281a /src/cache.c
parent1e17da9d704097523e337b64d2b0e424caa4a9ef (diff)
downloadapk-tools-415e230a7f0874206d4bbe2662c9f9cbf7e4c307.tar.gz
apk-tools-415e230a7f0874206d4bbe2662c9f9cbf7e4c307.tar.bz2
apk-tools-415e230a7f0874206d4bbe2662c9f9cbf7e4c307.tar.xz
apk-tools-415e230a7f0874206d4bbe2662c9f9cbf7e4c307.zip
db, cache: automatically remount cache read-write when needed
.. and back to read-only after finishing with modifications. fixes #512
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c2
1 files changed, 1 insertions, 1 deletions
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,
};