commit:     3d953d7e8d9f27b566644e616fd1e5af9d4ec874
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  3 07:40:57 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jul  3 08:16:27 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d953d7e

dev-python/python-dateutil: Update non-zoneinfo skip

Update the skipped file list for /usr/share/zoneinfo iteration
to prevent crashing on files such as 'leapseconds' or 'tzdata.zi'.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../files/0001-zoneinfo-Get-timezone-data-from-system-tzdata-r1.patch   | 2 +-
 ...{python-dateutil-2.8.1-r2.ebuild => python-dateutil-2.8.1-r3.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

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
index a937e6600a2..abbc853e090 100644
--- 
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
@@ -57,7 +57,7 @@ index 34f11ad..e9870ca 100644
 +def iter_zones(topdir):
 +    for dirpath, dirnames, filenames in os.walk(topdir):
 +        for f in filenames:
-+            if f.endswith('.list') or f.endswith('.tab'):
++            if f.endswith(('.list', '.tab', '.zi', 'leapseconds')):
 +                continue
 +            fpath = os.path.join(dirpath, f)
 +            relpath = os.path.relpath(fpath, topdir)

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
similarity index 100%
rename from dev-python/python-dateutil/python-dateutil-2.8.1-r2.ebuild
rename to dev-python/python-dateutil/python-dateutil-2.8.1-r3.ebuild

Reply via email to