Skip to content

Treat a string path as a one-file group in newer_pairwise_group - #428

Open
gyanu2507 wants to merge 1 commit into
pypa:mainfrom
gyanu2507:newer-pairwise-group-str
Open

Treat a string path as a one-file group in newer_pairwise_group#428
gyanu2507 wants to merge 1 commit into
pypa:mainfrom
gyanu2507:newer-pairwise-group-str

Conversation

@gyanu2507

Copy link
Copy Markdown

Fixes #411.

newer_pairwise_group was partial(newer_pairwise, newer=newer_group). newer_pairwise passes each source through as a single item, and newer_group iterates it. A string path is iterable, so it compared each character as a filename and almost always looked like the source was missing.

A lone path is now wrapped as a one-file group. Existing list-of-groups calls are unchanged.

Passing newer_group through newer_pairwise iterated a str as characters,
so a real source file was almost always reported as missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue / incorrect assumption with distutils._modified.newer_pairwise (always found as inexistant?)

1 participant