[Buildd-tools-devel] Removing strict distribution check
Francesco P. Lovergine
frankie@debian.org
Thu, 20 Jan 2005 09:50:58 +0100
On Thu, Jan 20, 2005 at 01:49:43AM +0100, Michael Banck wrote:
> On Wed, Dec 08, 2004 at 12:36:24AM +0100, Michael Banck wrote:
> > --- sbuild.orig 2004-12-06 18:39:41.000000000 +0100
> > +++ sbuild 2004-12-08 00:32:12.000000000 +0100
> > @@ -135,8 +135,6 @@
> > $main::distribution = "stable" if $main::distribution eq "s";
> > $main::distribution = "testing" if $main::distribution eq "t";
> > $main::distribution = "unstable" if $main::distribution eq "u";
> > - die "Bad distribution\n"
> > - if !isin($main::distribution, keys(%main::dist_order));
> > }
> > elsif (/^-p/ || /^--purge/) {
> > if (/^-p(.)/ || /^--purge=(.)/) {
> > @@ -266,6 +264,8 @@
> > "-o DPkg::Options::=--root=$absroot ".
> > "-o DPkg::Run-Directory=$absroot";
> > $main::chroot_apt_op = '$CHROOT_OPTIONS';
> > +} else {
> > + die "chroot-$main::distribution does not exist\n";
> > }
> > write_jobs_file();
> >
>
> Any objections to that patch? Otherwise, I'll commit it over the next
> days.
>
It's ok for me.
--
Francesco P. Lovergine