mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
Don't generate filelist unless we are going to use it
We throw it away if !full, so no need to waste time creating the list in the first place. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
00c393d49f
commit
cfa7602032
@ -306,7 +306,7 @@ static pmpkg_t *pkg_load(const char *pkgfile, int full)
|
||||
} else if(*entry_name == '.') {
|
||||
/* for now, ignore all files starting with '.' that haven't
|
||||
* already been handled (for future possibilities) */
|
||||
} else {
|
||||
} else if(full) {
|
||||
/* Keep track of all files for filelist generation */
|
||||
newpkg->files = alpm_list_add(newpkg->files, strdup(entry_name));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user