chiark / gitweb /
* Fix syntax errors introduced by print-execute-command etc.
authorIan Jackson <ian@davenant.greenend.org.uk>
Mon, 2 Jul 2007 15:46:05 +0000 (16:46 +0100)
committerIan Jackson <ian@davenant.greenend.org.uk>
Mon, 2 Jul 2007 15:46:05 +0000 (16:46 +0100)
debian/changelog
virt-subproc/VirtSubproc.py
virt-subproc/adt-virt-xenlvm

index e4d608749d0dc2f80623f6b5dd4489ed2107a0a4..0b414e9a853ed287129f4530fc1569bda8b6978a 100644 (file)
@@ -2,6 +2,7 @@ autopkgtest (0.9.0~iwj) unstable; urgency=low
 
   * WIP userv service.
   * WIP print-execute-command command for virtualisation servers.
+  * Fix syntax errors introduced by print-execute-command etc.
   * Do not demand vg or distro information for initscript to work.
   * autopkgtest-xenlvm now Recommends: lvm2 and debootstrap.
   * pass count= to dd for erasure when lvm_erasebase=true.
@@ -22,7 +23,7 @@ autopkgtest (0.9.0~iwj) unstable; urgency=low
     spurious warning from the lvm tools).
   * autopkgtest Suggests curl (adt-testreport-onepackage needs it).
 
- -- Ian Jackson <ian@davenant.greenend.org.uk>  Mon,  2 Jul 2007 15:59:53 +0100
+ --
 
 autopkgtest (0.8.2feisty1~iwj) feisty-updates; urgency=low
 
index 9b3c36f97f44b134d5bdc88429eddb60fd4bcf1b..b53c381d5ab49987173b12d2d05edd3046db5a69 100644 (file)
@@ -82,7 +82,7 @@ def cmd_print_execute_command(c, ce):
        if not downtmp: bomb("`print-execute-command' when not open")
        if hasattr(caller,'hook_callerexeccmd'):
                (cl,kvl) = caller.hook_callerexeccmd()
-       else
+       else:
                cl = down
                kvl = ['auxverb']
        return ','.join(map(urllib.quote, cl)) + kvl
index 46ee14e76aa587222f74f228d3403a5bbb55d9f0..0d49876d0804520debfe930b4e5b3701f604c786 100755 (executable)
@@ -85,23 +85,23 @@ def parse_args():
        if not opts.userv:
                if opts.gain_root is None: gain_root = []
                else: gain_root = opts.gain_root.split()
-               with_testbed = gain_root + ['adt-xenlvm-with-testbed'] +
+               with_testbed = (gain_root + ['adt-xenlvm-with-testbed'] +
                        xargs_direct + xlargs +
-                       ['--','sh','-ec','echo y; exec cat']
-               vsp.down = gain_root + ['adt-xenlvm-on-testbed'] +
-                       xargs_direct + xlargs + ['--']
+                       ['--','sh','-ec','echo y; exec cat'])
+               vsp.down = (gain_root + ['adt-xenlvm-on-testbed'] +
+                       xargs_direct + xlargs + ['--'])
        else:
                if opts.gain_root:
                        pe('--userv and --gain-root are not compatible')
-               basis = ['userv'] + xargs_userv + xlargs +
-                       ['root','adt-xenlvm-testbed']
+               basis = (['userv'] + xargs_userv + xlargs +
+                       ['root','adt-xenlvm-testbed'])
                get_down = subprocess.Popen(basis + ['pon0'],
                        stdin=file('/dev/null'), stdout=subprocess.PIPE,
                        stderr=None)
                (pon0, _) = get_down.communicate()
                if get_down.returncode:
                        vsp.bomb('failed to check userv service provision'
-                               ' and subcommand details (code=%d) %
+                               ' and subcommand details (code=%d)' %
                                get_down.returncode)
                vsp.down = pon0.split('\0')
        pauses = opts.pause.split(',')