[Buildroot] [PATCH 05/13] autobuild-run: remove unneeded vars
André Erdmann
dywi at mailerd.de
Wed Feb 25 21:17:22 UTC 2015
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 at mailerd.de>
---
scripts/autobuild-run | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/scripts/autobuild-run b/scripts/autobuild-run
index 236597d..5db21b1 100755
--- a/scripts/autobuild-run
+++ b/scripts/autobuild-run
@@ -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
--
2.3.0
More information about the buildroot
mailing list