Hi,

Quoting Johannes Schauer Marin Rodrigues (2024-12-30 07:51:28)
> > The build works, so it's not *that* bad, considering how fast mmdebstrap
> > is, but it would sure be nice to skip that step entirely.
> 
> so this is just a wishlist feature. I think it's a nice wishlist feature and I
> think it absolutely makes sense to have a variable mapping UNRELEASED to
> unstable by default, similar to how aliases worked before in schroot.

since sbuild supports multiple backends and since finding the chroot tarball
re-uses the common functionality of finding tarballs that is also shared with
the schroot and autopkgtest backend, it turns out that to implement this, we
need to make a change that is not unshare-backend specific. Instead, to achieve
this, we need to make a change that will influence all backends. If you'd like
to help, could you test-drive this change:

--- /usr/share/perl5/Sbuild/ChrootInfo.pm
+++ /usr/share/perl5/Sbuild/ChrootInfo.pm
@@ -86,6 +86,10 @@ sub find {
        $distribution =~ s/^[^:]+://msx;
     }
 
+    if ($distribution eq "UNRELEASED") {
+       $distribution = "unstable";
+    }
+
     my $chroots = $self->get('Chroots');
 
     # Don't do strict arch checking if ARCH == HOST_ARCH.

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to