summaryrefslogtreecommitdiffstats
path: root/src/info.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-14 11:55:08 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-14 11:55:08 +0300
commitab37bd0b0c0da340222f8420ec2ee6ccdd13ce24 (patch)
tree8afbdc279ebeca5fc735b89024aa3c7b5f92b4ed /src/info.c
parente00f5ea74a448c1148725794d89a4149b98fdb11 (diff)
downloadapk-tools-ab37bd0b0c0da340222f8420ec2ee6ccdd13ce24.tar.bz2
apk-tools-ab37bd0b0c0da340222f8420ec2ee6ccdd13ce24.tar.xz
db: speed up fdb creation
avoid recalculating hashes, and store the lengths of names, so we can optimize some operations.
Diffstat (limited to 'src/info.c')
-rw-r--r--src/info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/info.c b/src/info.c
index 4be29dc..7a50a67 100644
--- a/src/info.c
+++ b/src/info.c
@@ -190,7 +190,7 @@ static void info_print_contents(struct apk_package *pkg)
diri_files_list) {
if (apk_verbosity > 1)
printf("%s: ", pkg->name->name);
- printf("%s/%s\n", diri->dir->dirname, file->filename);
+ printf("%s/%s\n", diri->dir->name, file->name);
}
}
}