From 039ff3bd466819909a5295a43e40947a9e0b6c16 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Wed, 3 Jan 2018 15:17:11 +0200 Subject: 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. --- src/add.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/add.c') diff --git a/src/add.c b/src/add.c index 742df07..dcaa45c 100644 --- a/src/add.c +++ b/src/add.c @@ -60,7 +60,7 @@ static const struct apk_option_group optgroup_applet = { static int non_repository_check(struct apk_database *db) { - if (apk_flags & APK_FORCE) + if (apk_force & APK_FORCE_NON_REPOSITORY) return 0; if (apk_db_cache_active(db)) return 0; @@ -69,8 +69,8 @@ static int non_repository_check(struct apk_database *db) apk_error("You tried to add a non-repository package to system, " "but it would be lost on next reboot. Enable package caching " - "(apk cache --help) or use --force if you know what you are " - "doing."); + "(apk cache --help) or use --force-non-repository " + "if you know what you are doing."); return 1; } -- cgit v1.2.3-60-g2f50