Revert "Always print "Removing bundle" when removing"

This reverts commit 75864a3afa.
This commit is contained in:
Otavio Pontes
2019-09-13 14:03:56 -07:00
parent 75864a3afa
commit 5bd747fb3e
+5 -2
View File
@@ -559,6 +559,11 @@ enum swupd_code remove_bundles(char **bundles)
goto out_free_curl;
}
/* only show this message if there are multiple bundles to be removed */
if (*(bundles + 1) || total > 0) {
info("Removing bundle: %s\n", bundle);
}
current_mom = load_mom(current_version, false, mix_exists, NULL);
if (!current_mom) {
error("Unable to download/verify %d Manifest.MoM\n", current_version);
@@ -567,8 +572,6 @@ enum swupd_code remove_bundles(char **bundles)
goto out_free_curl;
}
info("\nRemoving bundle: %s\n", bundle);
if (!search_bundle_in_manifest(current_mom, bundle)) {
error("Bundle name is invalid, aborting removal\n");
ret = SWUPD_INVALID_BUNDLE;