Repository navigation
nightly-cf0983a3-ls18
Pre-releaseCI
LinuxServer changes
Full Changelog: nightly-8f7ba350-ls17...nightly-cf0983a3-ls18
Upstream changes
Source: beetbox/beets@cf0983a
titlecase: fix beet completion crash when the plugin is enabled (#7161)
With plugins: titlecase, beet completion exits 1:
optparse.OptionConflictError: option -l/--limit: conflicting option string(s): -l, --limit
TitlecasePlugin.commands() adds the limit option to a parser built
once in __init__. print_completion calls plugins.commands() a
second time, so the option is added twice. This came in with #7003.
The fix adds the option in __init__, which is where duplicates,
ftintitle and missing add theirs. Other plugins build their parser
inside commands(), so titlecase is the only one affected.
Testing
- New test:
test_commands_can_be_requested_twice. It fails without the
fix with the error above. beet completionwith the plugin enabled: exit 1 before, exit 0
after.beet titlecase --helpstill lists--limit.- Full suite on Python 3.11: 2817 passed, 182 skipped.
test_completion
itself was skipped because my test image has no bash-completion package. ruff checkandruff format --checkpass on the changed Python
files.
AI disclosure
As AI_POLICY.md asks: an LLM-based review tool, arnx, found this while
testing #7003, and Claude wrote the fix. I reproduced the crash, tested,
reviewed the change and I'm answering for it here.