summaryrefslogtreecommitdiff
path: root/libappstream-builder/asb-context.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-02-02 11:36:29 +0000
committerRichard Hughes <richard@hughsie.com>2015-02-02 11:36:29 +0000
commit25b97c77b2d27f9c86d1a0bb6b731a327a1906a6 (patch)
tree589d7efb5515ccb682c3116d27410136b6f4baac /libappstream-builder/asb-context.c
parentfbc9a6c77311a9aaf6cecdd44792d2d33e113e2d (diff)
downloadappstream-glib-25b97c77b2d27f9c86d1a0bb6b731a327a1906a6.tar.gz
Only open the package when required
This reduces the peak RSS by about 15% typically.
Diffstat (limited to 'libappstream-builder/asb-context.c')
-rw-r--r--libappstream-builder/asb-context.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libappstream-builder/asb-context.c b/libappstream-builder/asb-context.c
index 69f920f..f6ea8b4 100644
--- a/libappstream-builder/asb-context.c
+++ b/libappstream-builder/asb-context.c
@@ -567,10 +567,9 @@ asb_context_add_filename (AsbContext *ctx, const gchar *filename, GError **error
filename);
return FALSE;
}
- if (!asb_package_open (pkg, filename, error))
- return FALSE;
/* add to array */
+ asb_package_set_filename (pkg, filename);
asb_context_add_package (ctx, pkg);
return TRUE;
}