remote-ls: Do away with most -d compat handling

It is not really worth preserving output 1-1 here,
we can just update the tests to accept the new output.

The one aspect we preserve here is that we don't show
the origin by default when only listing a single remote.

Closes: #2409
Approved by: alexlarsson
This commit is contained in:
Matthias Clasen
2018-12-18 19:25:41 -05:00
committed by Atomic Bot
parent 1f64886c6e
commit 05b2a0b2e3

View File

@@ -488,10 +488,7 @@ flatpak_builtin_remote_ls (int argc, char **argv, GCancellable *cancellable, GEr
}
}
/* tweak some defaults, for compatibility */
all_columns[1].def = !opt_show_details; /* application */
all_columns[5].def = opt_show_details; /* ref */
all_columns[6].def = !has_remote; /* origin */
all_columns[6].def = !has_remote;
columns = handle_column_args (all_columns, opt_show_details, opt_cols, error);
if (columns == NULL)