summaryrefslogtreecommitdiff
path: root/src/apk_defines.h
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-12-07 10:41:13 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-12-07 12:50:32 +0000
commitc43bfed8deaa0dab47c54db9b8f374853d345a6b (patch)
tree0a257c0462ea99483946b142b1dd03424add1496 /src/apk_defines.h
parent14b74c4dc097ff71280e99edc651b685b9582950 (diff)
downloadapk-tools-c43bfed8deaa0dab47c54db9b8f374853d345a6b.tar.gz
apk-tools-c43bfed8deaa0dab47c54db9b8f374853d345a6b.tar.bz2
apk-tools-c43bfed8deaa0dab47c54db9b8f374853d345a6b.tar.xz
apk-tools-c43bfed8deaa0dab47c54db9b8f374853d345a6b.zip
db: add support for --no-cache
Implement --no-cache. The index is read directly from network and not cached. This is useful for docker, where you install a set of packages and directly after purge the cache. (see https://github.com/gliderlabs/docker-alpine/blob/1fc9e59d1689fc4eaf930ec66389fe58062fccec/builder/scripts/apk-install) fixes #4905
Diffstat (limited to 'src/apk_defines.h')
-rw-r--r--src/apk_defines.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/apk_defines.h b/src/apk_defines.h
index 69113b4..2aca364 100644
--- a/src/apk_defines.h
+++ b/src/apk_defines.h
@@ -76,6 +76,7 @@ extern char **apk_argv;
#define APK_NO_NETWORK 0x1000
#define APK_OVERLAY_FROM_STDIN 0x2000
#define APK_NO_SCRIPTS 0x4000
+#define APK_NO_CACHE 0x8000
/* default architecture for APK packages. */
#if defined(__x86_64__)