@@ -205,8 +205,6 @@ def prepare_build(instance, log):
log_write(log, "INFO: removing %s from downloads" % f)
os.remove(os.path.join(dldir, f))
- devnull = open(os.devnull, "w")
-
# Clone Buildroot. This only happens if the source directory
# didn't exist already.
srcdir = os.path.join(idir, "buildroot")
@@ -219,7 +217,7 @@ def prepare_build(instance, log):
# Update the Buildroot sources.
abssrcdir = os.path.abspath(srcdir)
- ret = subprocess.call(["git", "pull"], cwd=srcdir, stdout=log, stderr=log)
+ ret = subprocess.call(["git", "pull"], cwd=abssrcdir, stdout=log, stderr=log)
if ret != 0:
log_write(log, "ERROR: could not pull Buildroot sources")
return -1
@@ -361,7 +359,6 @@ def gen_config(instance, log, sysinfo):
"""
idir = "instance-%d" % instance
- dldir = os.path.join(idir, "dl")
# We need the absolute path to use with O=, because the relative
# path to the output directory here is not relative to the
# Buildroot sources, but to the location of the autobuilder
And use cwd=abssrcdir (instead of srcdir) in the "Update the Buildroot sources" git pull command as that seems the intended purpose of $abssrcdir. Signed-off-by: André Erdmann <dywi@mailerd.de> --- scripts/autobuild-run | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)