diff options
author | Dan McGee <dan@archlinux.org> | 2007-06-08 04:20:40 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-06-09 18:57:50 +0200 |
commit | 25c5b39d05cdb8856098429d0fa6f8da595d5af6 (patch) | |
tree | e6ec51c96f782f51f7e8e36bc59d8387fbc63f7b /src/pacman/add.c | |
parent | a32ca90192ea2b2df2fadb820c9e47bbaec93151 (diff) | |
download | pacman-25c5b39d05cdb8856098429d0fa6f8da595d5af6.tar.gz pacman-25c5b39d05cdb8856098429d0fa6f8da595d5af6.tar.xz |
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 <dan@archlinux.org>
Diffstat (limited to 'src/pacman/add.c')
-rw-r--r-- | src/pacman/add.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/add.c b/src/pacman/add.c index 526b236b..d5d83d28 100644 --- a/src/pacman/add.c +++ b/src/pacman/add.c @@ -65,7 +65,8 @@ int pacman_add(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); } /* Check for URL targets and process them |