chiark / gitweb /
virt-subproc: use sd, not sde, for creating target command (#648161)
[autopkgtest.git] / lib / VirtSubproc.py
index 5d991d885d87ab10ec7868c27f721bdf9d522f9c..074b605e5ae94a769158d47b1f6d75e6b885fc72 100644 (file)
@@ -259,7 +259,6 @@ def copyupdown(c, ce, upp):
        iremote = 1 - upp
        wh = ce[0]
        sd = c[1:]
-       sde = ce[1:]
        if not sd[0] or not sd[1]:
                bomb("%s paths must be nonempty" % wh)
        dirsp = sd[0][-1]=='/'
@@ -270,7 +269,7 @@ def copyupdown(c, ce, upp):
        localfd = None
        deststdout = devnull_read
        srcstdin = devnull_read
-       remfileq = shellquote_arg(sde[iremote])
+       remfileq = shellquote_arg(sd[iremote])
        if not dirsp:
                modestr = ''
                rune = 'cat %s%s' % ('><'[upp], remfileq)