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 == '.') {
|
} else if(*entry_name == '.') {
|
||||||
/* for now, ignore all files starting with '.' that haven't
|
/* for now, ignore all files starting with '.' that haven't
|
||||||
* already been handled (for future possibilities) */
|
* already been handled (for future possibilities) */
|
||||||
} else {
|
} else if(full) {
|
||||||
/* Keep track of all files for filelist generation */
|
/* Keep track of all files for filelist generation */
|
||||||
newpkg->files = alpm_list_add(newpkg->files, strdup(entry_name));
|
newpkg->files = alpm_list_add(newpkg->files, strdup(entry_name));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue