apt-cache show filebeat | grep Version | head -1
Version: 7.17.5
Describe the solution you'd like
Refactor get_package_info method in ansible/playbooks/roles/repository/files/download-requirements/src/command/debian/apt_cache.py to not use __get_package_candidate_version. The latter probably can be removed.
Describe alternatives you've considered
Keep current flow if necessary.
Additional context
n/a
DoD checklist
Changelog
[x] updated
[ ] not needed
COMPONENTS.md
[ ] updated
[x] not needed
Schema
[ ] updated
[x] not needed
Backport tasks
[ ] created
[x] not needed
Documentation
[ ] added
[ ] updated
[x] not needed
[ ] Feature has automated tests
[ ] Automated tests passed (QA pipelines)
[x] apply
[x] upgrade
[ ] backup/restore
[x] Idempotency tested
[x] All conversations in PR resolved
[ ] Solution meets requirements and is done according to design doc
Is your feature request related to a problem? Please describe. Current flow for a package is:
apt-cache show
apt-cache policy
apt-cache depends
apt download
It looks like
apt-cache policy
may be replaced byapt-cache show
, which seems to return the candidate version at the top, for example:vs
Describe the solution you'd like Refactor
get_package_info
method inansible/playbooks/roles/repository/files/download-requirements/src/command/debian/apt_cache.py
to not use__get_package_candidate_version
. The latter probably can be removed.Describe alternatives you've considered Keep current flow if necessary.
Additional context n/a
DoD checklist