[pacman-dev] [PATCH] check.c: break backup file search loop after match

Allan McRae allan at archlinux.org
Sun Aug 4 21:18:41 EDT 2013


On 05/08/13 07:18, Andrew Gregory wrote:
> Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
> ---
>  src/pacman/check.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/pacman/check.c b/src/pacman/check.c
> index 6c8889f..f9166b0 100644
> --- a/src/pacman/check.c
> +++ b/src/pacman/check.c
> @@ -327,11 +327,11 @@ int check_pkg_full(alpm_pkg_t *pkg)
>  		for(lp = alpm_pkg_get_backup(pkg); lp; lp = lp->next) {
>  			alpm_backup_t *bl = lp->data;
>  
>  			if(strcmp(path, bl->name) == 0) {
>  				backup = 1;
> -				continue;
> +				break;

:faceplam:

Signed-off-by: Me

>  			}
>  		}
>  
>  		if(type != AE_IFDIR) {
>  			/* file or symbolic link */
> 



More information about the pacman-dev mailing list