mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-04 15:15:25 -04:00
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
This commit is contained in:
committed by
Atomic Bot
parent
d9eed092cf
commit
25c9a57ccb
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user