summaryrefslogtreecommitdiffstats
path: root/src/pacman/check.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/check.c')
-rw-r--r--src/pacman/check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/check.c b/src/pacman/check.c
index ab35891a..85b25f39 100644
--- a/src/pacman/check.c
+++ b/src/pacman/check.c
@@ -277,7 +277,7 @@ int check_pkg_full(alpm_pkg_t *pkg)
return 0;
}
- while(alpm_pkg_mtree_next(pkg, mtree, &entry) == ARCHIVE_OK) {
+ while(alpm_pkg_mtree_next(pkg, mtree, &entry) == 0) {
struct stat st;
const char *path = archive_entry_pathname(entry);
char filepath[PATH_MAX];