summaryrefslogtreecommitdiff
path: root/user/py3-tz/zoneinfo-fix.patch
diff options
context:
space:
mode:
authorzlg <zlg@zlg.space>2018-11-21 03:20:58 -0800
committerzlg <zlg@zlg.space>2018-11-21 03:35:29 -0800
commitdad36fec1bde77520971a3af519279d5a307ce98 (patch)
tree44853a81a556c462ad3f9250a3a6fa3a3eb0569e /user/py3-tz/zoneinfo-fix.patch
parentf68fe057197d17af33c1f57e8c61d038623c5abc (diff)
downloadpackages-dad36fec1bde77520971a3af519279d5a307ce98.tar.gz
packages-dad36fec1bde77520971a3af519279d5a307ce98.tar.bz2
packages-dad36fec1bde77520971a3af519279d5a307ce98.tar.xz
packages-dad36fec1bde77520971a3af519279d5a307ce98.zip
user/py3-tz: new package
Diffstat (limited to 'user/py3-tz/zoneinfo-fix.patch')
-rw-r--r--user/py3-tz/zoneinfo-fix.patch13
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