[pacman-dev] [PATCH] check.c: break backup file search loop after match
Signed-off-by: Andrew Gregory <andrew.gregory.8@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; } } if(type != AE_IFDIR) { /* file or symbolic link */ -- 1.8.3.4
On 05/08/13 07:18, Andrew Gregory wrote:
Signed-off-by: Andrew Gregory <andrew.gregory.8@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 */
participants (2)
-
Allan McRae
-
Andrew Gregory