mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-29 18:11:22 -05:00
list/remote-ls: Also ignore .Sources by default
This commit is contained in:
@@ -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], '.');
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user