From 25c5b39d05cdb8856098429d0fa6f8da595d5af6 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 7 Jun 2007 22:20:40 -0400 Subject: Fix up things after the last few changes * Readd default logmask of ERROR and WARNING * Remove DOWNLOAD log level as it no longer applies * Add 'no targets' logic back in where it applies * Switch some prints in parseconfig to ERROR Signed-off-by: Dan McGee --- src/pacman/remove.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pacman/remove.c') diff --git a/src/pacman/remove.c b/src/pacman/remove.c index 9b4adce0..9750fe47 100644 --- a/src/pacman/remove.c +++ b/src/pacman/remove.c @@ -51,7 +51,8 @@ int pacman_remove(alpm_list_t *targets) int retval = 0; if(targets == NULL) { - return(0); + pm_printf(PM_LOG_ERROR, _("no targets specified (use -h for help)\n")); + return(1); } /* If the target is a group, ask if its packages should be removed -- cgit v1.2.3