summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2018-07-01 14:38:18 -0400
committerJason Woodward2018-07-01 14:38:18 -0400
commit0b6992ebfbff04e93caa666e7518ac360c6b1c3d (patch)
tree93f9af2a738b74352ca802757ab6a54c611a6c0b
parent8e3e858324bceca1ed71eb21d0006abff785971e (diff)
downloadslapt-src-0b6992ebfbff04e93caa666e7518ac360c6b1c3d.tar.gz
give some minimal feedback if there is nothing to do
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index fe15b34..2a3d933 100644
--- a/src/main.c
+++ b/src/main.c
@@ -494,6 +494,11 @@ static int show_summary(slapt_src_slackbuild_list *sbs, slapt_list_t *names, int
{
int i, line_len = 0;
+ if (sbs->count == 0) {
+ printf(gettext("Done\n"));
+ return action;
+ }
+
printf(gettext("The following packages will be %s:\n"),
action == INSTALL_OPT ? gettext("installed")
: action == BUILD_OPT ? gettext("built")