Summary
Current cli implementation for removing content doesn't handle duplicate filenames across multiple python content
Steps to reproduce
- Create two pypi repos
- Upload the same file to both repos
- Try to remove the file from one of the repos
Expected behavior
The file is removed
Stacktrace/Error log
❯ pulp python repository content list --repository example | jq -r '.[].filename'
ml_services_utils-0.11.3.tar.gz
ml_services_utils-0.11.3-py3-none-any.whl
❯ pulp python repository content remove --repository example --filename ml_services_utils-0.11.3.tar.gz
Error: Multiple python packages found with {'filename': 'ml_services_utils-0.11.3.tar.gz'}.
Pulp and pulp-cli version info
❯ pulp --version
Pulp3 Command Line Interface, Version 0.33.0
Plugin Versions:
common: 0.33.0
Additonal context
https://discourse.pulpproject.org/t/how-to-remove-file-from-local-pypi-repository/2041
Summary
Current cli implementation for removing content doesn't handle duplicate filenames across multiple python content
Steps to reproduce
Expected behavior
The file is removed
Stacktrace/Error log
Pulp and pulp-cli version info
Additonal context
https://discourse.pulpproject.org/t/how-to-remove-file-from-local-pypi-repository/2041