From cfa760203295e99f65234896036f854b5047c90e Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 16 Feb 2011 20:56:32 -0600 Subject: 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 --- lib/libalpm/be_package.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c index 38448b43..f4837890 100644 --- a/lib/libalpm/be_package.c +++ b/lib/libalpm/be_package.c @@ -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)); } -- cgit v1.2.3-70-g09d2