summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-07-22 16:48:47 +0100
committerRichard Hughes <richard@hughsie.com>2015-07-22 16:48:47 +0100
commitf6129c77d2083e2f9647f69749d48c08398949c3 (patch)
tree104b03f6b28a5d362ff1bf8e6c148b3790d27d62
parent3f226b6a62d630d1aad43f13254292ef2564f617 (diff)
downloadappstream-glib-f6129c77d2083e2f9647f69749d48c08398949c3.tar.gz
trivial: Correctly subsume source_pkgname
-rw-r--r--libappstream-builder/asb-self-test.c1
-rw-r--r--libappstream-glib/as-app.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/libappstream-builder/asb-self-test.c b/libappstream-builder/asb-self-test.c
index b1fbe4d..b4dc0fc 100644
--- a/libappstream-builder/asb-self-test.c
+++ b/libappstream-builder/asb-self-test.c
@@ -442,6 +442,7 @@ asb_test_context_test_func (AsbTestContextMode mode)
"<id>Liberation</id>\n"
"<pkgname>font</pkgname>\n"
"<pkgname>font-serif</pkgname>\n"
+ "<source_pkgname>font</source_pkgname>\n"
"<name>Liberation</name>\n"
"<summary>Open source versions of several commecial fonts</summary>\n"
"<description><p>The Liberation Fonts are intended to be replacements for Times New Roman, Arial, and Courier New.</p></description>\n"
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c
index 3e3b6ef..8e8b7a1 100644
--- a/libappstream-glib/as-app.c
+++ b/libappstream-glib/as-app.c
@@ -2803,6 +2803,10 @@ as_app_subsume_private (AsApp *app, AsApp *donor, AsAppSubsumeFlags flags)
if (priv->source_file != NULL)
as_app_set_source_file (app, priv->source_file);
+ /* source_pkgname */
+ if (priv->source_pkgname != NULL)
+ as_app_set_source_pkgname (app, priv->source_pkgname, -1);
+
/* origin */
if (priv->origin != NULL)
as_app_set_origin (app, priv->origin);