Skip to content

distribution: Add packages() for per-distribution package lists - #445

Merged
daandemeyer merged 1 commit into
amutable:mainfrom
daandemeyer:distribution-packages
Nov 30, 2026
Merged

daandemeyer merged 1 commit into
amutable:mainfrom
daandemeyer:distribution-packages

Conversation

@daandemeyer

@daandemeyer daandemeyer commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

A package list that is mostly the same everywhere and differs on a few
distributions has to be written as a list plus a distribution.select() with
an empty DEFAULT key. Projects that keep such lists as dicts write their own
helper to turn them into that shape.

Let's add distribution.packages(), which takes the common list and a dict
keyed like distribution.select(). A distribution gets the common list plus
the lists of its family key and its release key, so a release only lists
what differs from its family.

@daandemeyer
daandemeyer force-pushed the distribution-packages branch from e69448d to 50a1119 Compare November 30, 2026 12:03

@martinpitt martinpitt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion, and this is conflicty so needs a rebase.

Comment thread distribution/BUCK Resolved
A package list that is mostly the same everywhere and differs on a few
distributions has to be written as a list plus a distribution.select() with
an empty DEFAULT key. Projects that keep such lists as dicts write their own
helper to turn them into that shape.

Let's add distribution.packages(), which takes the common list and a dict
keyed like distribution.select(). A distribution gets the common list plus
the lists of its family key and its release key, so a release only lists
what differs from its family.

Signed-off-by: Daan De Meyer <daan@amutable.com>
@daandemeyer
daandemeyer force-pushed the distribution-packages branch from 50a1119 to 9cde75c Compare November 30, 2026 13:10
@daandemeyer
daandemeyer merged commit adf7219 into amutable:main Nov 30, 2026
6 checks passed
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.

2 participants