@@ -140,7 +140,7 @@ sub setup_dpkg {
if ($self->get_conf('HOST_ARCH') ne $self->get_conf('BUILD_ARCH')) {
$session->run_command(
- { COMMAND => ['echo', '"foreign-architecture ' . $self->get_conf('HOST_ARCH') . '"', '>', '/etc/dpkg/dpkg.cfg.d/sbuild'],
+ { COMMAND => ['sh', '-c', 'echo "foreign-architecture ' . $self->get_conf('HOST_ARCH') . '" > /etc/dpkg/dpkg.cfg.d/sbuild'],
USER => 'root' });
# We should get this much nicer interface with new dpkg upload.
# { COMMAND => ['dpkg', '--add-foreign-architecture ', $self->get_conf('HOST_ARCH')],
From: Wookey <wookey@wookware.org> --- lib/Sbuild/ResolverBase.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)