← Back to issue list

fix(deb): refresh apt cache before marking packages

View original Github issue

Metadata

Project
craft-parts
Number
#1468
Type
pull request
State
open
Author
gcomneno
Labels
Created
2026-02-22 19:40:49+00:00
Updated
2026-03-17 10:00:41+00:00
Closed

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.