xbps-{bin,repo}: print with correct indentation.

--HG--
extra : convert_revision : be65d8b98702e23eaeac6ff2adb2e726824b64f7
This commit is contained in:
Juan RP
2009-04-09 12:24:15 +02:00
parent 679117e9a9
commit 92d2087c7e
2 changed files with 41 additions and 13 deletions

View File

@@ -129,9 +129,10 @@ xbps_remove_pkg(const char *pkgname)
reqby = prop_dictionary_get(dict, "requiredby");
if (reqby != NULL && prop_array_count(reqby) > 0) {
printf("WARNING! %s-%s is required by the following "
"packages:\n", pkgname, version);
"packages:\n\n", pkgname, version);
(void)xbps_callback_array_iter_in_dict(dict,
"requiredby", list_strings_in_array, NULL);
printf("\n\n");
if (xbps_noyes("Do you want to remove %s?", pkgname) == false) {
printf("Cancelling!\n");
exit(EXIT_SUCCESS);