[pacman-dev] [PATCH] Fix warning messages when syncing installed package

Allan McRae mcrae_allan at hotmail.com
Mon Jun 9 06:02:35 EDT 2008


Xavier wrote:
>
> On the other hand, I don't really like all these specific handling for
> these 2 options.
> If we don't want logging when these options are used, why not just
> disabling the logging altogether?
> Something like this maybe :
>
> diff --git a/src/pacman/sync.c b/src/pacman/sync.c
> index 47ab4eb..90f2129 100644
> --- a/src/pacman/sync.c
> +++ b/src/pacman/sync.c
> @@ -766,6 +766,10 @@ int pacman_sync(alpm_list_t *targets)
>  {
>         alpm_list_t *sync_dbs = NULL;
>
> +       if(config->flags & (PM_TRANS_FLAG_DOWNLOADONLY |
> PM_TRANS_FLAG_PRINTURIS)) {
> +               config->logmask = 0;
> +       }
> +
>         /* clean the cache */
>         if(config->op_s_clean) {
>                 int ret = 0;
>
>   

Sure.  Is there any warning message that is actually useful when using 
those two options?  I can't think of anything but you and Dan know the 
code-base far better than I do.






More information about the pacman-dev mailing list