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

Andrew Gregory andrew.gregory.8 at gmail.com
Sun Aug 4 17:18:08 EDT 2013


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;
 			}
 		}
 
 		if(type != AE_IFDIR) {
 			/* file or symbolic link */
-- 
1.8.3.4



More information about the pacman-dev mailing list