diff mbox

[2353/2353] Explictly use the shell so that echo command get redirected properly

Message ID 1324306056-23512-2-git-send-email-wookey@wookware.org
State Awaiting Upstream
Headers show

Commit Message

Wookey Dec. 19, 2011, 2:47 p.m. UTC
From: Wookey <wookey@wookware.org>

---
 lib/Sbuild/ResolverBase.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/lib/Sbuild/ResolverBase.pm b/lib/Sbuild/ResolverBase.pm
index 06ac8fc..a0f554a 100644
--- a/lib/Sbuild/ResolverBase.pm
+++ b/lib/Sbuild/ResolverBase.pm
@@ -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')],