diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2012-12-01 18:29:45 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2012-12-11 14:10:31 +0100 |
commit | b0932700722af08dd91a7aebe8a3e5a932a48c67 (patch) | |
tree | 50f1aafe4b73918a696dd56264ee4ea5ed79eb64 | |
parent | e611abca91bb7a1cd6f8646db30c2bd171365d8c (diff) |
debugmedia
-rw-r--r-- | tools/osinfo-detect.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/osinfo-detect.c b/tools/osinfo-detect.c index 0caa4ca..7d79ad5 100644 --- a/tools/osinfo-detect.c +++ b/tools/osinfo-detect.c @@ -142,6 +142,19 @@ static void print_media(OsinfoMedia *media) g_print(_("Media is an installer for OS '%s'\n"), name); if (osinfo_media_get_live (media)) g_print(_("Media is live media for OS '%s'\n"), name); + if (osinfo_media_get_languages (media)) { + GList *it; + gboolean comma = FALSE; + g_print ("Lang: "); + for (it = osinfo_media_get_languages (media); + it != NULL; + it = it->next) { + if (comma) g_print(", "); + g_print("%s", (char *)it->data); + comma = TRUE; + } + g_print("\n"); + } } g_object_unref(os); } |