mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
be_sync: fetch only entry mode, not full stat struct
This saves a lot of unnecessary work since we don't need any of the other fields in the stat struct. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
bf56fb6eb8
commit
d8fab9b441
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user