From: Ian Jackson Date: Thu, 22 Feb 2007 17:55:22 +0000 (+0000) Subject: pass origpwd into create_command properly X-Git-Tag: converted-from-bzr~32^3~28 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f2aa2de6f63b90363fbbe94c7e55cfd1482503ae;p=autopkgtest.git pass origpwd into create_command properly --- diff --git a/runner/adt-run b/runner/adt-run index aed2219..0cb108a 100755 --- a/runner/adt-run +++ b/runner/adt-run @@ -1428,7 +1428,7 @@ def build_source(act): work = TemporaryDir(what+'-build') script = [ - 'arg="$1"', + 'spec="$1"', 'origpwd=`pwd`', 'cd '+work.write(True) ] @@ -1451,10 +1451,9 @@ def build_source(act): if opts.user: script += [ 'chown '+opts.user+' .', - 'spec="$arg" '+opts.user_wrap(create_command) + 'spec="$spec" origpwd="$origpwd" '+opts.user_wrap(create_command) ] else: script += [ - 'spec="$arg"', create_command ]