pacman: fix error during -Fy

Signed-off-by: morganamilo <morganamilo@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
morganamilo 2019-06-07 00:10:56 +01:00 committed by Allan McRae
parent 39c20ad4f1
commit 80321b21ae

View file

@ -300,7 +300,7 @@ int pacman_files(alpm_list_t *targets)
return files_list(files_dbs, targets);
}
if(targets == NULL) {
if(targets == NULL && !config->op_s_sync) {
pm_printf(ALPM_LOG_ERROR, _("no targets specified (use -h for help)\n"));
return 1;
}