Adjust the importer algorithm so that the regular suite-based unapplied branch pointers are not moved incrementally as successive publications in Launchpad are imported. Instead, they will all be updated together at the end of an import for the entire source package at once as follows.
For all known suites, run getPublishedSources() against that distro_series and pocket, take the highest version, and set the branch pointer to that. Note: remember "exact_match=True"!
It would mean one more iteration per pocket every six months. Perhaps I could add an importer CLI option to ignore suites older than some date, so that regular production runs could skip EOL suites.
It'll also be necessary to make sure nothing else in the importer relies on these branch pointers being present at the earlier stage.
It shouldn't be very difficult to run the new algorithm against all existing repositories to see which branch pointers would change first.
Suggested resolution:
Adjust the importer algorithm so that the regular suite-based unapplied branch pointers are not moved incrementally as successive publications in Launchpad are imported. Instead, they will all be updated together at the end of an import for the entire source package at once as follows.
For all known suites, run getPublishedSou rces() against that distro_series and pocket, take the highest version, and set the branch pointer to that. Note: remember "exact_match=True"!
It would mean one more iteration per pocket every six months. Perhaps I could add an importer CLI option to ignore suites older than some date, so that regular production runs could skip EOL suites.
It'll also be necessary to make sure nothing else in the importer relies on these branch pointers being present at the earlier stage.
It shouldn't be very difficult to run the new algorithm against all existing repositories to see which branch pointers would change first.