Hi,

@josch, sorry, I overlooked that you referenced me earlier in this bug.

On 2024-05-14 12:12, Johannes Schauer Marin Rodrigues wrote:
> In general, you should avoid using -d or --dist with sbuild. But I see that
> sbuild-qemu always adds this option to the sbuild call. I am unable to say why
> it does that. Maybe Christian can clarify?

That's simple: because I wasn't aware of this side effect.

Internally, the distribution is set because some value is needed to
auto-guess the image name. It defaults to 'unstable' but if --dist is
set, its value is used is guessing the name.

This was actually wrong for many reasons. Another one would be that it
was passed on twice if the user used --dist.[1]

I just pushed a fix. Tested with
  $ sbuild-qemu --noexec foo
  $ sbuild-qemu --noexec --dist unstable foo
  $ sbuild-qemu --noexec --dist experimental --image /path/to/img foo

Best,
Christian

[1] Clean-up and proper tests are still on my TODO list :(

Reply via email to