diff options
author | Matthew Leeds <matthew.leeds@endlessm.com> | 2018-02-18 22:56:29 -0800 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-02-19 08:21:39 +0000 |
commit | 1e479095b2f9976a7faf1f610acd86a75227f70d (patch) | |
tree | 116ff00793b65a985d50f630402dcbeb812dc6f2 | |
parent | d5b4443ef3d1c6fa006815ff3b6f2624a771a816 (diff) | |
download | flatpak-1e479095b2f9976a7faf1f610acd86a75227f70d.tar.gz |
dir: Quiet messages about missing appstream data
Now that the search command is attempting to update appstream data for
all supported architectures, error messages get printed when it's
missing, which is often the case for i386. This commit changes
flatpak_dir_check_for_appstream_update() to only print an error if the
the appstream data for the host architecture is missing, but not if it's
a secondary architecture.
Closes: #1430
Approved by: alexlarsson
-rw-r--r-- | common/flatpak-dir.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index 3b356533..3d96145f 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -2118,8 +2118,12 @@ flatpak_dir_check_for_appstream_update (FlatpakDir *self, if (!flatpak_dir_find_latest_rev (self, remote, branch, &new_checksum, NULL, NULL, &local_error)) { - g_printerr (_("Failed to find latest revision for ref %s from remote %s: %s\n"), - branch, remote, local_error->message); + if (g_strcmp0 (arch, flatpak_get_arch ()) == 0) + g_printerr (_("Failed to find latest revision for ref %s from remote %s: %s\n"), + branch, remote, local_error->message); + else + g_debug (_("Failed to find latest revision for ref %s from remote %s: %s\n"), + branch, remote, local_error->message); new_checksum = NULL; } if (new_checksum == NULL) |