Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-02-16 20:56:32 -0600
committerDan McGee <dan@archlinux.org>2011-02-16 20:57:07 -0600
commitcfa760203295e99f65234896036f854b5047c90e (patch)
tree461d0665095c1595669489203d996af4e2f8a562 /lib
parent00c393d49ff77bb85397278b8f4bd89450402806 (diff)
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/be_package.c2
1 files changed, 1 insertions, 1 deletions
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));
}