glibc-package.bbclass: Make the localedef error more helpful
authorRichard Purdie <rpurdie@rpsys.net>
Mon, 16 Oct 2006 23:23:40 +0000 (23:23 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Mon, 16 Oct 2006 23:23:40 +0000 (23:23 +0000)
packages/glibc/glibc-package.bbclass

index 162274b..fc527b2 100644 (file)
@@ -261,7 +261,7 @@ python package_do_split_gconvs () {
                cmd = "PATH=\"%s\" I18NPATH=\"%s\" %s -L %s %s/bin/localedef %s" % (path, i18npath, qemu, treedir, treedir, localedef_opts)
                bb.note("generating locale %s (%s)" % (locale, encoding))
                if os.system(cmd):
-                       raise bb.build.FuncFailed("localedef returned an error.")
+                       raise bb.build.FuncFailed("localedef returned an error (command was %s)." % cmd)
 
        def output_locale(name, locale, encoding):
                use_bin = bb.data.getVar("GLIBC_INTERNAL_USE_BINARY_LOCALE", d, 1)