summaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2018-01-03 15:17:11 +0200
committerTimo Teräs <timo.teras@iki.fi>2018-01-03 16:00:38 +0200
commit039ff3bd466819909a5295a43e40947a9e0b6c16 (patch)
tree1f22b1a16dd752e48142a0c5aff0697fb100ea78 /src/index.c
parentf90af35e9c563bd4f865d8d47a7ae357191494db (diff)
downloadapk-tools-039ff3bd466819909a5295a43e40947a9e0b6c16.tar.gz
apk-tools-039ff3bd466819909a5295a43e40947a9e0b6c16.tar.bz2
apk-tools-039ff3bd466819909a5295a43e40947a9e0b6c16.tar.xz
apk-tools-039ff3bd466819909a5295a43e40947a9e0b6c16.zip
split --force to several --force-[type] options
This unloads --force as several of the things are really not wanted together. E.g. --force-refresh is a lot different from --force-broken-world and doing --force to get the other might introduce unwanted behaviour. --force is still kept for backwards compatibility and it enables most things --force was used for.
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/index.c b/src/index.c
index 4dd69cb..35bd340 100644
--- a/src/index.c
+++ b/src/index.c
@@ -118,9 +118,9 @@ static int index_main(void *ctx, struct apk_database *db, struct apk_string_arra
char **parg;
if (isatty(STDOUT_FILENO) && ictx->output == NULL &&
- !(apk_flags & APK_FORCE)) {
- apk_error("Will not write binary index to console "
- "without --force");
+ !(apk_force & APK_FORCE_BINARY_STDOUT)) {
+ apk_error("Will not write binary index to console. "
+ "Use --force-binary-stdout to override.");
return -1;
}