[Buildd-tools-devel] Removing strict distribution check
Michael Banck
mbanck@debian.org
Thu, 20 Jan 2005 01:49:43 +0100
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.
Michael
--
Michael Banck
Debian Developer
mbanck@debian.org
http://www.advogato.org/person/mbanck/diary.html