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

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>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant