Re: [pacman-dev] [PATCH] pacman: fix error during -Fy

2019-06-06 Thread Allan McRae
On 7/6/19 9:10 am, morganamilo wrote:
> Signed-off-by: morganamilo 
> 
> diff --git a/src/pacman/files.c b/src/pacman/files.c
> index 74d06815..8e518486 100644
> --- a/src/pacman/files.c
> +++ b/src/pacman/files.c
> @@ -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;
>   }
> 

Ack.


[pacman-dev] [PATCH] pacman: fix error during -Fy

2019-06-06 Thread morganamilo
Signed-off-by: morganamilo 

diff --git a/src/pacman/files.c b/src/pacman/files.c
index 74d06815..8e518486 100644
--- a/src/pacman/files.c
+++ b/src/pacman/files.c
@@ -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;
}
-- 
2.21.0