diff options
Diffstat (limited to 'user/py3-tz/zoneinfo-fix.patch')
-rw-r--r-- | user/py3-tz/zoneinfo-fix.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/user/py3-tz/zoneinfo-fix.patch b/user/py3-tz/zoneinfo-fix.patch new file mode 100644 index 000000000..a0a3a1190 --- /dev/null +++ b/user/py3-tz/zoneinfo-fix.patch @@ -0,0 +1,13 @@ +Patch pulled from Gentoo. Forces package to use system tzinfo +--- a/pytz/__init__.py ++++ b/pytz/__init__.py +@@ -91,8 +91,7 @@ + if zoneinfo_dir is not None: + filename = os.path.join(zoneinfo_dir, *name_parts) + else: +- filename = os.path.join(os.path.dirname(__file__), +- 'zoneinfo', *name_parts) ++ filename = os.path.join('/usr/share/zoneinfo', *name_parts) + if not os.path.exists(filename): + # http://bugs.launchpad.net/bugs/383171 - we avoid using this + # unless absolutely necessary to help when a broken version of |