diff options
author | Richard Hughes <richard@hughsie.com> | 2017-06-01 09:45:04 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-06-01 09:59:46 +0100 |
commit | 85b19c63089ea1d719e352b6b1e78b5b090d80f3 (patch) | |
tree | 49301897fef13c1d293f3f9e21bed801a34f08b5 | |
parent | 42bbad651fe0709d61f5bcae2bfddafa181bb290 (diff) | |
download | appstream-glib-85b19c63089ea1d719e352b6b1e78b5b090d80f3.tar.gz |
trivial: Fix a variable with a misleading name
-rw-r--r-- | libappstream-builder/asb-task.c | 14 | ||||
-rw-r--r-- | libappstream-builder/asb-task.h | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/libappstream-builder/asb-task.c b/libappstream-builder/asb-task.c index 2de0bc3..5bf8971 100644 --- a/libappstream-builder/asb-task.c +++ b/libappstream-builder/asb-task.c @@ -301,7 +301,7 @@ asb_task_explode_extra_packages (AsbTask *task, GError **error) /** * asb_task_process: * @task: A #AsbTask - * @error_not_used: A #GError or %NULL + * @error: A #GError or %NULL * * Processes the task. * @@ -310,7 +310,7 @@ asb_task_explode_extra_packages (AsbTask *task, GError **error) * Since: 0.1.0 **/ gboolean -asb_task_process (AsbTask *task, GError **error_not_used) +asb_task_process (AsbTask *task, GError **error) { AsRelease *release; AsbApp *app; @@ -331,7 +331,7 @@ asb_task_process (AsbTask *task, GError **error_not_used) /* ensure nevra read */ if (!asb_package_ensure (priv->pkg, ASB_PACKAGE_ENSURE_NEVRA, - error_not_used)) + error)) return FALSE; g_debug ("starting: %s", asb_package_get_name (priv->pkg)); @@ -366,7 +366,7 @@ asb_task_process (AsbTask *task, GError **error_not_used) /* ensure file list read */ if (!asb_package_ensure (priv->pkg, ASB_PACKAGE_ENSURE_FILES, - error_not_used)) + error)) return FALSE; /* did we get a file match on any plugin */ @@ -412,7 +412,7 @@ asb_task_process (AsbTask *task, GError **error_not_used) if (!asb_package_ensure (priv->pkg, ASB_PACKAGE_ENSURE_DEPS | ASB_PACKAGE_ENSURE_SOURCE, - error_not_used)) + error)) return FALSE; ret = asb_task_explode_extra_packages (task, &error); if (!ret) { @@ -471,7 +471,7 @@ asb_task_process (AsbTask *task, GError **error_not_used) ASB_PACKAGE_ENSURE_RELEASES | ASB_PACKAGE_ENSURE_VCS | ASB_PACKAGE_ENSURE_URL, - error_not_used)) + error)) return FALSE; if (asb_package_get_url (priv->pkg) != NULL && as_app_get_url_item (AS_APP (app), AS_URL_KIND_HOMEPAGE) == NULL) { @@ -528,7 +528,7 @@ asb_task_process (AsbTask *task, GError **error_not_used) if (array->len == 0) { if (!asb_app_save_resources (ASB_APP (app), ASB_APP_SAVE_FLAG_SCREENSHOTS, - error_not_used)) + error)) return FALSE; } diff --git a/libappstream-builder/asb-task.h b/libappstream-builder/asb-task.h index 93f961a..8e7e418 100644 --- a/libappstream-builder/asb-task.h +++ b/libappstream-builder/asb-task.h @@ -48,7 +48,7 @@ struct _AsbTaskClass AsbTask *asb_task_new (AsbContext *ctx); gboolean asb_task_process (AsbTask *task, - GError **error_not_used); + GError **error); void asb_task_set_package (AsbTask *task, AsbPackage *pkg); |