diff --git a/actions.c b/actions.c index 764ca8a..564877b 100644 --- a/actions.c +++ b/actions.c @@ -364,7 +364,7 @@ action_list(char *flatlist, char *str) * we try to fit them indented into the current line length. */ if (flatlist == NULL) { - flatlist = xasprintf("%s%s", noflag ? "\n" : " ", str); + flatlist = xasprintf("%s%s", noflag ? "" : " ", str); return flatlist; } @@ -761,7 +761,8 @@ pkgin_remove(char **pkgargs) if (todelete != NULL) { printf(MSG_PKGS_TO_DELETE, deletenum, todelete); - printf("\n"); + if (!noflag) + printf("\n"); if (check_yesno(DEFAULT_YES)) { do_pkg_remove(removehead); diff --git a/autoremove.c b/autoremove.c index cc993bc..d28ec51 100644 --- a/autoremove.c +++ b/autoremove.c @@ -114,7 +114,8 @@ pkgin_autoremove(void) toremove = action_list(toremove, premove->depend); printf(MSG_AUTOREMOVE_PKGS, removenb, toremove); - + if (!noflag) + printf("\n"); if (check_yesno(DEFAULT_YES)) { do_pkg_remove(orderedhead); diff --git a/messages.h b/messages.h index be292d2..498835a 100644 --- a/messages.h +++ b/messages.h @@ -92,7 +92,7 @@ /* autoremove.c */ #define MSG_ALL_KEEP_PKGS "all packages are marked as \"keepable\"\n." -#define MSG_AUTOREMOVE_PKGS "%d packages to be autoremoved: %s\n" +#define MSG_AUTOREMOVE_PKGS "%d packages to be autoremoved:\n%s\n" #define MSG_MARK_PKG_KEEP "%s is marked as non-autoremovable\n" #define MSG_MARK_PKG_NOKEEP "%s is marked as autoremovable\n" #define MSG_MARKING_PKG_KEEP "marking %s as non auto-removable\n"