Re: [yocto-patches] [AUH] [PATCH v2 1/2] upgrade-helper: add state module and --incremental mode
Alexander Kanavin <[email protected]>
| Newsgroups | org.yoctoproject.lists.yocto-patches |
|---|---|
| Message-ID | <CANNYZj8TpE-SZjbd46G1u9JabeGL_oFK7__CgXg5QkGYg=DVzw@mail.gmail.com> |
On Thu, 4 Jun 2026 at 13:40, Alexander Kanavin via lists.yoctoproject.org <[email protected]> wrote: > So I'd suggest: > > retry_interval is renamed to retry_same_version_interval > retry_any_version_interval setting is introduced > retry_any_version_recipes setting is introduced, and is a list of recipes > _prune() is adjusted to first check if a recipe is in that list, and > if so, it's checked against retry_any_version_interval, and not any > other intervals, so that it's guaranteed to be skipped until that > interval elapses (and skip_reason() should consider that similarly) > > Otherwise, I think this is more or less ready! Actually not quite. I'd really like to avoid duplicating timestamp logic in skip_reason and prune(), and only implement it once, so perhaps the way to do it is to have a helper function that returns a dict: {'verdict': True, 'reason' : "explanation here"} Then function callers can pick and use the entries they need. Alex