From 25c9a57ccb44c2a2e0bd5fdc09ee99a32166a26b Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 18 Jan 2019 15:32:47 +0100 Subject: [PATCH] repair: Only warn about non-existing remotes for normal refs. For example, someone today got warning messages for deploy refs: Remote (null) for ref deploy/runtime/org.freedesktop.Platform.html5-codecs/x86_64/18.08 is missing Closes: #2611 Approved by: matthiasclasen --- app/flatpak-builtins-repair.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/flatpak-builtins-repair.c b/app/flatpak-builtins-repair.c index 8f169e43..621961e6 100644 --- a/app/flatpak-builtins-repair.c +++ b/app/flatpak-builtins-repair.c @@ -404,6 +404,13 @@ flatpak_builtin_repair (int argc, char **argv, GCancellable *cancellable, GError if (!ostree_parse_refspec (refspec, &remote, &ref_name, error)) return FALSE; + if (remote == NULL) + continue; + + /* Does this look like a regular ref? */ + if (!g_str_has_prefix (ref_name, "app/") && !g_str_has_prefix (ref_name, "runtime/")) + continue; + if (!flatpak_dir_has_remote (dir, remote, NULL)) g_print (_("Remote %s for ref %s is missing\n"), remote, ref_name); else if (flatpak_dir_get_remote_disabled (dir, remote))