summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-12-01 18:29:45 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2012-12-11 14:10:31 +0100
commitb0932700722af08dd91a7aebe8a3e5a932a48c67 (patch)
tree50f1aafe4b73918a696dd56264ee4ea5ed79eb64
parente611abca91bb7a1cd6f8646db30c2bd171365d8c (diff)
debugmedia
-rw-r--r--tools/osinfo-detect.c13
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);
}