list/remote-ls: Also ignore .Sources by default

This commit is contained in:
Alexander Larsson
2017-05-30 17:45:12 +02:00
parent d1fae1f476
commit 005fb63cc0
2 changed files with 4 additions and 2 deletions

View File

@@ -184,7 +184,8 @@ print_table_for_refs (gboolean print_apps, GPtrArray* refs_array, const char *ar
if (!opt_all && strcmp (parts[0], "runtime") == 0 &&
(g_str_has_suffix (parts[1], ".Locale") ||
g_str_has_suffix (parts[1], ".Debug")))
g_str_has_suffix (parts[1], ".Debug") ||
g_str_has_suffix (parts[1], ".Sources")))
{
g_autofree char *prefix_partial_ref = NULL;
char *last_dot = strrchr (parts[1], '.');

View File

@@ -162,7 +162,8 @@ flatpak_builtin_ls_remote (int argc, char **argv, GCancellable *cancellable, GEr
if (!opt_all &&
strcmp (parts[0], "runtime") == 0 &&
(g_str_has_suffix (parts[1], ".Locale") ||
g_str_has_suffix (parts[1], ".Debug")))
g_str_has_suffix (parts[1], ".Debug") ||
g_str_has_suffix (parts[1], ".Sources")))
{
g_autofree char *prefix_partial_ref1 = NULL;
g_autofree char *prefix_partial_ref2 = NULL;