[buildd-tools-devel] Bug#613401: [PATCH] Sbuild::Options: Added --no-arch-all command line option.

Sebastian Harl tokkee at debian.org
Mon Feb 14 15:16:16 UTC 2011


This allows to overwrite '$build_arch_all = 1;' (in .sbuildrc) on the command
line.

Signed-off-by: Sebastian Harl <sh at tokkee.org>
---
 lib/Sbuild/Options.pm |    3 +++
 man/sbuild.1.in       |    4 ++++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/lib/Sbuild/Options.pm b/lib/Sbuild/Options.pm
index a48e194..7e67e46 100644
--- a/lib/Sbuild/Options.pm
+++ b/lib/Sbuild/Options.pm
@@ -45,6 +45,9 @@ sub set_options {
 		       "A|arch-all" => sub {
 			   $self->set_conf('BUILD_ARCH_ALL', 1);
 		       },
+		       "no-arch-all" => sub {
+			   $self->set_conf('BUILD_ARCH_ALL', 0);
+		       },
 		       "add-depends=s" => sub {
 			   push(@{$self->get_conf('MANUAL_DEPENDS')}, $_[1]);
 		       },
diff --git a/man/sbuild.1.in b/man/sbuild.1.in
index 763ffa5..2b7a931 100644
--- a/man/sbuild.1.in
+++ b/man/sbuild.1.in
@@ -143,6 +143,10 @@ appropriately to build as that architecture, e.g. using
 Also build Architecture: all packages, i.e. use dpkg\-buildpackage \-b
 instead of \-B.
 .TP
+.BR "\-\-no\-arch\-all"
+Do not build Architecture: all packages, i.e. use dpkg\-buildpackage -B
+instead of \-b. This option is the opposite of \-\-arch\-all.
+.TP
 .BR \-b ", " "\-\-batch"
 Operate in batchmode, i.e. write a build-progress file during execution
 and files on shutdown to facilitate a clean restart.
-- 
1.7.2.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20110214/e4dd3829/attachment.pgp>


More information about the Buildd-tools-devel mailing list