Package: sbuild
Version: 0.60.5-1
Severity: wishlist
Tags: upstream patch

It would be nice to have an --arch option for sbuild-update to update
chroots for another architecture (say i386 on an amd64 host).  Patch
attached.

Regards,
Ansgar
>From c9db570214ddf439879b84c4d8067726d4b1949f Mon Sep 17 00:00:00 2001
From: Ansgar Burchardt <ans...@debian.org>
Date: Sun, 5 Dec 2010 14:06:24 +0100
Subject: [PATCH] sbuild-update: Add --arch option.

Signed-off-by: Ansgar Burchardt <ans...@debian.org>
---
 bin/sbuild-update      |    3 +++
 man/sbuild-update.1.in |    4 ++++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/bin/sbuild-update b/bin/sbuild-update
index be594be..350f126 100755
--- a/bin/sbuild-update
+++ b/bin/sbuild-update
@@ -78,6 +78,9 @@ sub set_options {
     my $self = shift;
 
     $self->add_options(
+       "arch=s" => sub {
+           $self->set_conf('ARCH', $_[1]);
+       },
        "update|u" => sub {
            $self->set_conf('UPDATE', 1);
            $self->set_conf('COMPAT', 0);
diff --git a/man/sbuild-update.1.in b/man/sbuild-update.1.in
index 221ff63..8362ab4 100644
--- a/man/sbuild-update.1.in
+++ b/man/sbuild-update.1.in
@@ -19,6 +19,7 @@ sbuild\-update \- update, upgrade, and clean an sbuild chroot 
with apt-get
 .SH SYNOPSIS
 .B sbuild\-update
 .RB [ \-h \[or] \-\-help ] " " [ \-V \[or] \-\-version ]
+.RB [ \-\-arch=\fIarchitecture\fP ]
 .RB [ \-u \[or] \-\-update ] " " [ \-g \[or] \-\-upgrade ] " "
 .RB [ \-d \[or] \-\-dist\-upgrade ] " " [ \-c \[or] \-\-clean ] " "
 .RB [ \-a \[or] \-\-autoclean ] " " [ \-r \[or] \-\-autoremove ]
@@ -60,6 +61,9 @@ Display this manual.
 .BR \-V ", " \-\-version
 Print version information.
 .TP
+.BR "\-\-arch=\fIarchitecture\fP"
+Update chroot for the architecture specified.
+.TP
 .BR \-u ", " \-\-update
 Perform an \f[CB]apt\-get update\fP.
 .TP
-- 
1.7.2.3

Reply via email to