diff options
author | 2024-08-03 17:04:43 +0200 | |
---|---|---|
committer | 2024-08-15 13:29:00 -0400 | |
commit | 5ee1a193982fce006aefbd5a6c5907392016b44d (patch) | |
tree | 28b896fd05492eeefdc3f297079724a2112132a9 | |
parent | ebuild.5: update QA variables affected by QA_PREBUILT (diff) | |
download | portage-master.tar.gz portage-master.tar.bz2 portage-master.zip |
This is useful for bootstrapping purposes, as _ctypes requires a dynamic
linker.
Closes: https://github.com/gentoo/portage/pull/1363
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
-rw-r--r-- | lib/portage/util/compression_probe.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/portage/util/compression_probe.py b/lib/portage/util/compression_probe.py index 0879754b2..268e5840c 100644 --- a/lib/portage/util/compression_probe.py +++ b/lib/portage/util/compression_probe.py @@ -1,13 +1,13 @@ # Copyright 2015-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -import ctypes import errno import re from portage import _encodings, _unicode_encode from portage.exception import FileNotFound, PermissionDenied +from portage.util._ctypes import ctypes _compressors = { "bzip2": { @@ -49,7 +49,7 @@ _compressors = { # if the current architecture can support it, which is true when # sizeof(long) is at least 8 bytes. "decompress": "zstd -d" - + (" --long=31" if ctypes.sizeof(ctypes.c_long) >= 8 else ""), + + (" --long=31" if ctypes and ctypes.sizeof(ctypes.c_long) >= 8 else ""), "package": "app-arch/zstd", }, } |