Skip to content

nightly-ad27129f-ls20

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Nov 21:17
· 6 commits to nightly since this release

CI

Test report · Build status

LinuxServer changes

Full Changelog: nightly-a264a76c-ls19...nightly-ad27129f-ls20

Upstream changes

Source: beetbox/beets@ad27129

Fix --from-logfile parsing when semicolons appear in paths (#7185)

Problem

Fixes #4941.

When importing from a log file (beet import --from-logfile ...), paths
recorded in the log file were split with paths.split("; "). If any
path contained a semicolon in a directory or file name (e.g. Band; The/Album), it was split into multiple chunks where subsequent chunks
were relative. Passing mixed absolute and relative segments to
os.path.commonpath() raised:

ValueError: Can't mix absolute and relative paths

Solution

In paths_from_logfile, when log lines contain absolute paths, merge
any subsequent non-absolute chunks back into the preceding absolute path
before computing os.path.commonpath().

Tests

Added regression tests covering paths containing semicolons in directory
names for both Windows and POSIX path formats.