]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
dd-schroot-cmd: work around apt regression
authorHelmut Grohne <helmut@subdivi.de>
Wed, 17 Sep 2014 08:14:34 +0000 (10:14 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 17 Sep 2014 08:20:06 +0000 (10:20 +0200)
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 <peter@palfrader.org>
modules/porterbox/files/dd-schroot-cmd

index 8dc7a4b4bc5974a41040a2dc778700f9c433b765..0798131fa9e52c4fb6cd75d4bbf49cb8ce679061 100755 (executable)
@@ -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):