mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-24 00:41:00 -04:00
Show the full reference in repo-contents when using --show-details
It's useful to know if the ref is an application or a runtime, as each uses a different command line command.
This commit is contained in:
@@ -173,24 +173,32 @@ xdg_app_builtin_repo_contents (int argc, char **argv, GCancellable *cancellable,
|
||||
|
||||
if (g_str_has_prefix (ref, "runtime/") && !opt_only_apps)
|
||||
{
|
||||
name = g_strdup (ref + strlen ("runtime/"));
|
||||
if (!opt_show_details)
|
||||
{
|
||||
name = g_strdup (ref + strlen ("runtime/"));
|
||||
p = strchr (name, '/');
|
||||
if (p)
|
||||
*p = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
name = g_strdup (ref);
|
||||
}
|
||||
}
|
||||
|
||||
if (g_str_has_prefix (ref, "app/") && !opt_only_runtimes)
|
||||
{
|
||||
name = g_strdup (ref + strlen ("app/"));
|
||||
if (!opt_show_details)
|
||||
{
|
||||
name = g_strdup (ref + strlen ("app/"));
|
||||
p = strchr (name, '/');
|
||||
if (p)
|
||||
*p = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
name = g_strdup (ref);
|
||||
}
|
||||
}
|
||||
|
||||
if (name)
|
||||
|
||||
Reference in New Issue
Block a user