diff mbox

[3/3] Fix apt-get build-dep comand so it works. This code needs moving into AptResolver->install_deps

Message ID 1324507270-25272-3-git-send-email-wookey@wookware.org
State Awaiting Upstream
Headers show

Commit Message

Wookey Dec. 21, 2011, 10:41 p.m. UTC
From: Wookey <wookey@wookware.org>

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

Patch

diff --git a/lib/Sbuild/Build.pm b/lib/Sbuild/Build.pm
index 0ef5004..3042836 100644
--- a/lib/Sbuild/Build.pm
+++ b/lib/Sbuild/Build.pm
@@ -685,12 +685,12 @@  sub run_fetch_install_packages {
 		# install cross-deps. Hacked for now - need to generate dummy package
 		$self->log('Cross-deps: Running apt-get -a ' . $self->get('Host_Arch') . ' build-dep ' . $self->get('Package') . "\n");
 		$resolver->run_apt_command(
-			{ COMMAND => [$self->get_conf('APT_GET'),  '-a ' . $self->get('Host_Arch'), 'build-dep', $self->get('Package')],
+			{ COMMAND => [$self->get_conf('APT_GET'),  '-a' . $self->get('Host_Arch'), 'build-dep', '-yf', $self->get('Package')],
 			ENV => {'DEBIAN_FRONTEND' => 'noninteractive'},
 			USER => 'root',
 			DIR => '/' });
 		if ($?) {
-			$self->log("Failed to get cross build-deps:\n");
+			$self->log("Failed to get cross build-deps\n");
 			return 1;
 		}
 	}