Be fully silent on any -Sp operation

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2011-09-01 17:13:13 -05:00
parent 062c391919
commit d88e524e7c
1 changed files with 3 additions and 1 deletions

View File

@ -804,7 +804,9 @@ int sync_prepare_execute(void)
packages = alpm_trans_get_add(config->handle);
if(packages == NULL) {
/* nothing to do: just exit without complaining */
printf(_(" there is nothing to do\n"));
if(!config->print) {
printf(_(" there is nothing to do\n"));
}
goto cleanup;
}