chiark / gitweb /
pass origpwd into create_command properly
authorIan Jackson <ian@anarres>
Thu, 22 Feb 2007 17:55:22 +0000 (17:55 +0000)
committerIan Jackson <ian@anarres>
Thu, 22 Feb 2007 17:55:22 +0000 (17:55 +0000)
runner/adt-run

index aed221946e7af7fcbfc76aac69e0736b4ad88a86..0cb108a01f7a104f30f463b8028b1b2cccd8c0f3 100755 (executable)
@@ -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
                ]