summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-07-04 13:42:46 +0100
committerRichard Hughes <richard@hughsie.com>2014-07-04 14:05:17 +0100
commit1b7b4abf039efdb242582da0bca3a5de9ebb82de (patch)
tree45c3d51f2f6a5b06e7a2efcb23ea1dec74c503b2 /client
parent59ced70b9cac43e0041cbf2d9ec8cfd3965d81c9 (diff)
downloadappstream-glib-1b7b4abf039efdb242582da0bca3a5de9ebb82de.tar.gz
trivial: Always generate status.html and applications-to-import.yaml after each build
Diffstat (limited to 'client')
-rw-r--r--client/as-util.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/as-util.c b/client/as-util.c
index 3cabaae..6dfe33d 100644
--- a/client/as-util.c
+++ b/client/as-util.c
@@ -1462,12 +1462,13 @@ as_util_non_package_yaml (AsUtilPrivate *priv, gchar **values, GError **error)
_cleanup_string_free_ GString *yaml = NULL;
/* check args */
- if (g_strv_length (values) != 1) {
+ if (g_strv_length (values) != 2) {
g_set_error_literal (error,
AS_ERROR,
AS_ERROR_INVALID_ARGUMENTS,
"Not enough arguments, "
- "expected filename.xml.gz");
+ "expected filename.xml.gz "
+ "applications-to-import.yaml");
return FALSE;
}
@@ -1493,7 +1494,7 @@ as_util_non_package_yaml (AsUtilPrivate *priv, gchar **values, GError **error)
}
/* save file */
- if (!g_file_set_contents ("./applications-to-import.yaml", yaml->str, -1, error))
+ if (!g_file_set_contents (values[0], yaml->str, -1, error))
return FALSE;
return TRUE;
}