diff options
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/be_sync.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index 4864616b..53777d92 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -454,11 +454,8 @@ static int sync_db_populate(alpm_db_t *db) } while(archive_read_next_header(archive, &entry) == ARCHIVE_OK) { - const struct stat *st; - - st = archive_entry_stat(entry); - - if(S_ISDIR(st->st_mode)) { + mode_t mode = archive_entry_mode(entry); + if(S_ISDIR(mode)) { continue; } else { /* we have desc, depends or deltas - parse it */ |