Skip to content

fix: use copyPackage instead of syncSources for series copies#125

Merged
rtibbles merged 1 commit into
mainfrom
fix/use-copyPackage-for-series-copy
Apr 1, 2026
Merged

fix: use copyPackage instead of syncSources for series copies#125
rtibbles merged 1 commit into
mainfrom
fix/use-copyPackage-for-series-copy

Conversation

@rtibbles

@rtibbles rtibbles commented Apr 1, 2026

Copy link
Copy Markdown
Member

Summary

Replace syncSources with copyPackage for copying packages across series within the PPA. syncSources doesn't specify a source series or version, so Launchpad can't correctly resolve which binaries to include — causing source has no binaries to be copied errors even when binaries are published.

copyPackage takes explicit source_name and version, matching how promote() already works.

Also fixes:

  • has_published_binaries: not builds returned True when no builds existed
  • Handles obsolete series gracefully (like promote does)

References

Reviewer guidance

The core change is syncSourcescopyPackage in perform_queued_copies. The queue now stores (name, version) tuples instead of just names. Tests updated to match.

AI usage

Claude Code identified that syncSources was the wrong API (no version/series targeting) and switched to copyPackage which matches the pattern already used by promote(). All 47 tests pass.

syncSources doesn't specify a source series or version, so Launchpad
can't correctly resolve which binaries to copy. copyPackage takes
explicit source_name and version, matching how promote() already works.

Also fixes:
- has_published_binaries: 'not builds' returned True when no builds
  existed, treating "no builds" as "has binaries"
- Handle obsolete series gracefully (like promote does)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rtibbles rtibbles force-pushed the fix/use-copyPackage-for-series-copy branch from a5c5154 to b0f9062 Compare April 1, 2026 03:52
@rtibbles rtibbles merged commit 058f5df into main Apr 1, 2026
14 checks passed
@rtibbles rtibbles deleted the fix/use-copyPackage-for-series-copy branch April 1, 2026 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant