summaryrefslogtreecommitdiff
path: root/libappstream-builder
diff options
context:
space:
mode:
Diffstat (limited to 'libappstream-builder')
-rw-r--r--libappstream-builder/asb-self-test.c2
-rw-r--r--libappstream-builder/asb-task.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/libappstream-builder/asb-self-test.c b/libappstream-builder/asb-self-test.c
index 2c163dd..511278a 100644
--- a/libappstream-builder/asb-self-test.c
+++ b/libappstream-builder/asb-self-test.c
@@ -423,7 +423,7 @@ asb_test_context_test_func (AsbTestContextMode mode)
"<category>Fonts</category>\n"
"</categories>\n"
"<project_license>GPL-2.0+</project_license>\n"
- "<url type=\"homepage\">http://people.freedesktop.org/</url>\n"
+ "<url type=\"homepage\">http://fedorahosted.org/liberation-fonts/</url>\n"
"<screenshots>\n"
"<screenshot type=\"default\">\n"
"<caption>Liberation Serif – Regular</caption>\n"
diff --git a/libappstream-builder/asb-task.c b/libappstream-builder/asb-task.c
index 8c98362..57bd192 100644
--- a/libappstream-builder/asb-task.c
+++ b/libappstream-builder/asb-task.c
@@ -362,7 +362,8 @@ asb_task_process (AsbTask *task, GError **error_not_used)
ASB_PACKAGE_ENSURE_URL,
error_not_used))
return FALSE;
- if (asb_package_get_url (priv->pkg) != NULL) {
+ if (asb_package_get_url (priv->pkg) != NULL &&
+ as_app_get_url_item (AS_APP (app), AS_URL_KIND_HOMEPAGE) == NULL) {
as_app_add_url (AS_APP (app),
AS_URL_KIND_HOMEPAGE,
asb_package_get_url (priv->pkg));