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:
Dan McGee 2011-02-16 20:56:32 -06:00
parent 00c393d49f
commit cfa7602032
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}