nix-channels: '...' -> b'...' when dealing with paths

This commit is contained in:
dramforever 2023-11-20 18:34:17 +08:00
parent 2fda084533
commit fe4884f235

View File

@ -298,8 +298,8 @@ def update_channels(channels):
paths = [ paths = [
path path
for path in paths for path in paths
if 'texlive-2022-env-man' not in path if b'texlive-2022-env-man' not in path
and 'texlive-2022-env-info' not in path and b'texlive-2022-env-info' not in path
] ]
# Batch paths to avoid E2BIG # Batch paths to avoid E2BIG
@ -409,8 +409,8 @@ def garbage_collect():
paths = [ paths = [
path path
for path in paths for path in paths
if 'texlive-2022-env-man' not in path if b'texlive-2022-env-man' not in path
and 'texlive-2022-env-info' not in path and b'texlive-2022-env-info' not in path
] ]
for i in range(0, len(paths), PATH_BATCH): for i in range(0, len(paths), PATH_BATCH):