Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jan 2016 13:54:44 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r406986 - head/devel/gitinspector/files
Message-ID:  <201601231354.u0NDsiX1024461@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sat Jan 23 13:54:44 2016
New Revision: 406986
URL: https://svnweb.freebsd.org/changeset/ports/406986

Log:
  devel/gitinspector: support build with LANG=C (fix from upstream)
  
  Gitinspect is now 4 releases behind.  The problem where gitinspector will
  not build when LANG is set to "C" in the environment has been fixed for
  14 months already.  Apply the patch from the git repository upstream to
  fix (due to luck in name, it applies before patch-aa which affects the
  same localization file).  I recommend that this port be upgraded to a new
  release though.
  
  Approved by:	just fix it

Added:
  head/devel/gitinspector/files/patch-8755fb33dcb1   (contents, props changed)

Added: head/devel/gitinspector/files/patch-8755fb33dcb1
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/gitinspector/files/patch-8755fb33dcb1	Sat Jan 23 13:54:44 2016	(r406986)
@@ -0,0 +1,30 @@
+From 8755fb33dcb1e4398bec3e4931f04525b9a463e6 Mon Sep 17 00:00:00 2001
+From: Adam Waldenberg <adam.waldenberg@ejwa.se>
+Date: Mon, 24 Nov 2014 09:36:11 +0100
+Subject: [PATCH] Doesn't start when using "C" locale (Fixes issue 29).
+
+---
+ gitinspector/localization.py | 11 +++++++----
+ 1 file changed, 7 insertions(+), 4 deletions(-)
+
+--- gitinspector/localization.py
++++ gitinspector/localization.py
+@@ -51,11 +51,14 @@ def init():
+ 				lang = locale.getdefaultlocale()
+ 				os.environ['LANG'] = lang[0]
+ 
+-			filename = basedir.get_basedir() + "/translations/messages_%s.mo" % lang[0][0:2]
++			if lang[0] is not None:
++				filename = basedir.get_basedir() + "/translations/messages_%s.mo" % lang[0][0:2]
+ 
+-			try:
+-				__translation__ = gettext.GNUTranslations(open(filename, "rb"))
+-			except IOError:
++				try:
++					__translation__ = gettext.GNUTranslations(open(filename, "rb"))
++				except IOError:
++					__translation__ = gettext.NullTranslations()
++			else:
+ 				__translation__ = gettext.NullTranslations()
+ 
+ 		__enabled__ = True



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601231354.u0NDsiX1024461>