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

Signed-off-by: Sebastian Harl <s...@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

Attachment: signature.asc
Description: Digital signature

Reply via email to