From 6da083fc24e4f1ef0363957074148d1bc11cef83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Wed, 19 Jun 2013 20:55:01 +0300 Subject: all: few behavioural regression fixes Wildcard matching with no names should match all packages only for info and search applet. "apk del" would otherwise try to delete everything, etc. Fix also interactive mode to ask questions only if we are actually changing something. --- src/commit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commit.c') diff --git a/src/commit.c b/src/commit.c index af9e34cf0f..fc4fafd96c 100644 --- a/src/commit.c +++ b/src/commit.c @@ -259,7 +259,7 @@ int apk_solver_commit_changeset(struct apk_database *db, "disk space will be freed." : "additional disk space will be used."); } - if (changeset->changes->num > 0 && + if (changeset->num_total_changes > 0 && (apk_flags & APK_INTERACTIVE)) { printf("Do you want to continue [Y/n]? "); fflush(stdout); -- cgit v1.2.3