Skip to content

Remove exact archive suffixes when locating extracted sdists - #271

Open
codewithfourtix wants to merge 3 commits into
aboutcode-org:mainfrom
codewithfourtix:fix-sdist-extracted-directory-name
Open

Remove exact archive suffixes when locating extracted sdists#271
codewithfourtix wants to merge 3 commits into
aboutcode-org:mainfrom
codewithfourtix:fix-sdist-extracted-directory-name

Conversation

@codewithfourtix

Copy link
Copy Markdown

rstrip() removes any trailing characters found in an archive suffix, so names ending in characters such as a or zip produce the wrong extracted directory. Remove only the exact .tar.gz or .zip suffix.

Adds real archive extraction regressions for both formats.

Signed-off-by: Ali Zulfiqar <codewithfourtix@gmail.com>
Signed-off-by: Ali Zulfiqar <codewithfourtix@gmail.com>
Signed-off-by: Ali Zulfiqar <codewithfourtix@gmail.com>
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.

1 participant