Update appstream data on "flatpak update" (#1169)

* Update appstream data on "flatpak update"

This is especially useful since we now have flatpak search which uses
this data.

* fixup! Update appstream data on "flatpak update"
This commit is contained in:
Alexander Larsson
2017-11-16 06:23:55 +01:00
committed by Matthew Leeds
parent c429951755
commit 105f00b918
2 changed files with 4 additions and 1 deletions

View File

@@ -251,6 +251,9 @@ flatpak_builtin_update (int argc,
if (!flatpak_transaction_run (transaction, FALSE, cancellable, error))
return FALSE;
if (n_prefs == 0)
return update_appstream (dir, NULL, cancellable, error);
return TRUE;
}

View File

@@ -42,7 +42,7 @@
<para>
Updates applications and runtimes. <arg choice="plain">REF</arg> is a reference to the
application or runtime to install. If no <arg choice="plain">REF</arg> is given, everything
is updated.
is updated, as well as appstream info for all remotes.
</para>
<para>
Each <arg choice="plain">REF</arg> arguments is a full or partial indentifier in the