add: print all failing packages instead of only first
We want see all packages that fails to install and not only the firstcute-signatures
parent
3f9fe4c28b
commit
9f3fbedcc9
|
@ -63,7 +63,7 @@ static int add_main(void *ctx, struct apk_database *db, int argc, char **argv)
|
||||||
struct apk_package *virtpkg = NULL;
|
struct apk_package *virtpkg = NULL;
|
||||||
struct apk_dependency virtdep;
|
struct apk_dependency virtdep;
|
||||||
struct apk_dependency *deps;
|
struct apk_dependency *deps;
|
||||||
int i, r = 0, num_deps = 0;
|
int i, r = 0, num_deps = 0, errors = 0;
|
||||||
|
|
||||||
if (actx->virtpkg) {
|
if (actx->virtpkg) {
|
||||||
if (non_repository_check(db))
|
if (non_repository_check(db))
|
||||||
|
@ -136,10 +136,12 @@ static int add_main(void *ctx, struct apk_database *db, int argc, char **argv)
|
||||||
} else {
|
} else {
|
||||||
apk_error("Unable to install '%s': %d",
|
apk_error("Unable to install '%s': %d",
|
||||||
deps[i].name->name, r);
|
deps[i].name->name, r);
|
||||||
if (!(apk_flags & APK_FORCE))
|
errors++;
|
||||||
goto err;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (errors && !(apk_flags & APK_FORCE))
|
||||||
|
goto err;
|
||||||
|
|
||||||
r = apk_state_commit(state, db);
|
r = apk_state_commit(state, db);
|
||||||
err:
|
err:
|
||||||
if (state != NULL)
|
if (state != NULL)
|
||||||
|
|
Loading…
Reference in New Issue