Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-dateutil/files/, dev-python/python-dateutil/
Date: Sat, 03 Jul 2021 08:16:37
Message-Id: 1625300187.3d953d7e8d9f27b566644e616fd1e5af9d4ec874.mgorny@gentoo
1 commit: 3d953d7e8d9f27b566644e616fd1e5af9d4ec874
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 3 07:40:57 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 3 08:16:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d953d7e
7
8 dev-python/python-dateutil: Update non-zoneinfo skip
9
10 Update the skipped file list for /usr/share/zoneinfo iteration
11 to prevent crashing on files such as 'leapseconds' or 'tzdata.zi'.
12
13 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
14
15 .../files/0001-zoneinfo-Get-timezone-data-from-system-tzdata-r1.patch | 2 +-
16 ...{python-dateutil-2.8.1-r2.ebuild => python-dateutil-2.8.1-r3.ebuild} | 0
17 2 files changed, 1 insertion(+), 1 deletion(-)
18
19 diff --git a/dev-python/python-dateutil/files/0001-zoneinfo-Get-timezone-data-from-system-tzdata-r1.patch b/dev-python/python-dateutil/files/0001-zoneinfo-Get-timezone-data-from-system-tzdata-r1.patch
20 index a937e6600a2..abbc853e090 100644
21 --- a/dev-python/python-dateutil/files/0001-zoneinfo-Get-timezone-data-from-system-tzdata-r1.patch
22 +++ b/dev-python/python-dateutil/files/0001-zoneinfo-Get-timezone-data-from-system-tzdata-r1.patch
23 @@ -57,7 +57,7 @@ index 34f11ad..e9870ca 100644
24 +def iter_zones(topdir):
25 + for dirpath, dirnames, filenames in os.walk(topdir):
26 + for f in filenames:
27 -+ if f.endswith('.list') or f.endswith('.tab'):
28 ++ if f.endswith(('.list', '.tab', '.zi', 'leapseconds')):
29 + continue
30 + fpath = os.path.join(dirpath, f)
31 + relpath = os.path.relpath(fpath, topdir)
32
33 diff --git a/dev-python/python-dateutil/python-dateutil-2.8.1-r2.ebuild b/dev-python/python-dateutil/python-dateutil-2.8.1-r3.ebuild
34 similarity index 100%
35 rename from dev-python/python-dateutil/python-dateutil-2.8.1-r2.ebuild
36 rename to dev-python/python-dateutil/python-dateutil-2.8.1-r3.ebuild