From eb55ab62f846e68e9ad9a58cc805cc233d7fdd04 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Wed, 17 Sep 2014 10:14:34 +0200 Subject: [PATCH] dd-schroot-cmd: work around apt regression apt no longer accepts the following command line: apt-get --dry-run build-dep --arch-only -- guile-2.0 Swapping build-dep and --arch-only will make it with the current apt again. Signed-off-by: Peter Palfrader --- modules/porterbox/files/dd-schroot-cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/porterbox/files/dd-schroot-cmd b/modules/porterbox/files/dd-schroot-cmd index 8dc7a4b4b..0798131fa 100755 --- a/modules/porterbox/files/dd-schroot-cmd +++ b/modules/porterbox/files/dd-schroot-cmd @@ -180,7 +180,7 @@ class AptSchroot: self.apt_simulate_and_ask(['install', '--'] + packages) def apt_build_dep(self, packages, archonly=False): - cmd = ['build-dep'] + (['--arch-only'] if archonly else []) + ['--'] + cmd = (['--arch-only'] if archonly else []) + ['build-dep', '--'] self.apt_simulate_and_ask(cmd + packages) def apt_simulate_and_ask(self, cmd, split_download=True, run_clean=True): -- 2.20.1