fix(deb): refresh apt cache before marking packages
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
Refresh the apt package list before marking packages for installation when installation is required.
Previously, marking could fail with BuildPackageNotFound if the apt cache was stale, because apt-get update was triggered too late.
Adds unit tests to verify refresh ordering and the refresh_package_cache flag.
Related: canonical/craft-parts#292, canonical/rockcraft#1005.
Evaluation history
No evaluation history available.