diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-07-03 09:40:57 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-07-03 10:16:27 +0200 |
commit | 3d953d7e8d9f27b566644e616fd1e5af9d4ec874 (patch) | |
tree | 5dcd4d430f25010c33b07758292543495011e6ad /dev-python/python-dateutil/files | |
parent | metadata/install-qa-check.d: Skip DUS tests w/ DISTUTILS_OPTIONAL (diff) | |
download | gentoo-3d953d7e8d9f27b566644e616fd1e5af9d4ec874.tar.gz gentoo-3d953d7e8d9f27b566644e616fd1e5af9d4ec874.tar.bz2 gentoo-3d953d7e8d9f27b566644e616fd1e5af9d4ec874.zip |
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@gentoo.org>
Diffstat (limited to 'dev-python/python-dateutil/files')
-rw-r--r-- | dev-python/python-dateutil/files/0001-zoneinfo-Get-timezone-data-from-system-tzdata-r1.patch | 2 |
1 files changed, 1 insertions, 1 deletions
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 a937e6600a29..abbc853e0902 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) |