diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-06-19 20:55:01 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-06-19 20:56:18 +0300 |
commit | 6da083fc24e4f1ef0363957074148d1bc11cef83 (patch) | |
tree | 7c6e6e08c7f1506dbdcc3404ac6f03e2bd498a76 /src/commit.c | |
parent | e4c65886dd1758657ccf58e14523c2da57f2c98a (diff) | |
download | aports-6da083fc24e4f1ef0363957074148d1bc11cef83.tar.bz2 aports-6da083fc24e4f1ef0363957074148d1bc11cef83.tar.xz |
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.
Diffstat (limited to 'src/commit.c')
-rw-r--r-- | src/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |