From 039ff3bd466819909a5295a43e40947a9e0b6c16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= 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/commit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/commit.c') diff --git a/src/commit.c b/src/commit.c index af49f5c9fc..e82537f82d 100644 --- a/src/commit.c +++ b/src/commit.c @@ -266,7 +266,8 @@ int apk_solver_commit_changeset(struct apk_database *db, int r, errors = 0; if (apk_db_check_world(db, world) != 0) { - apk_error("Not committing changes due to missing repository tags. Use --force to override."); + apk_error("Not committing changes due to missing repository tags. " + "Use --force-broken-world to override."); return -1; } @@ -675,7 +676,8 @@ int apk_solver_commit(struct apk_database *db, int r; if (apk_db_check_world(db, world) != 0) { - apk_error("Not committing changes due to missing repository tags. Use --force to override."); + apk_error("Not committing changes due to missing repository tags. " + "Use --force-broken-world to override."); return -1; } -- cgit v1.2.3