Skip to content

Conversation

@JedMeister
Copy link
Member

As per the title, the primary purpose of this PR is to support creation of a pool without a buildroot (e.g. if you only need a pool with stocks of pools and/or directories of prebuilt packages). That is achevied in these 2 commits:

Plus there are some other minor modifications:

Bugfix:

  • fix check that would never match: 8b3d1e3

Improvement:

  • error message (instead of stacktrace) when pool-... commands fail: d9925b2

Other general code tiding:

  • set preserve_buildroot="on-error"' as default in pool_get()func inpool_bin`: 76b0c0f
  • remove errant whitespace: 1126022

@JedMeister JedMeister requested a review from OnGle December 22, 2025 03:27
Copy link
Member

@OnGle OnGle left a comment

Choose a reason for hiding this comment

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

Looks good otherwise.

strict: bool = False,
quiet: bool = False,
tree: bool = False,
preserve_buildroot: str | None = None,
Copy link
Member

Choose a reason for hiding this comment

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

With this setting the deckdebuild env-vars and conf relating to buildroot preservation are never read. This was set to None specifically to ensure this does not happen.

See https://github.com/turnkeylinux/pool/pull/27/files#diff-d4d6a8323784c531d3a4dc65462456e38588f3cecb89d514ec05596eb7695f02R827-R828

Copy link
Member Author

Choose a reason for hiding this comment

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

Doh! 🤦‍♂️ Great catch!

I'll wind that back and assuming it "just works" I'll merge this...

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