All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] cleanup-workdir: add a method for getting the build dir
@ 2015-05-18 20:08 Lucas Dutra Nunes
  2015-05-18 20:08 ` [PATCH 2/2] cleanup-workdir: wait for bitbake instances to finish Lucas Dutra Nunes
  0 siblings, 1 reply; 6+ messages in thread
From: Lucas Dutra Nunes @ 2015-05-18 20:08 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
---
 scripts/cleanup-workdir | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scripts/cleanup-workdir b/scripts/cleanup-workdir
index a7f5a3a..bf37f90 100755
--- a/scripts/cleanup-workdir
+++ b/scripts/cleanup-workdir
@@ -64,6 +64,9 @@ def get_cur_arch_dirs(workdir, arch_dirs):
         m = re.match(pattern, output)
         arch_dirs.append(m.group(1))
 
+def get_build_dir():
+    return run_command('echo $BUILDDIR').strip()
+
 def main():
     global parser
     parser = optparse.OptionParser(
@@ -77,7 +80,7 @@ will be deleted. Be CAUTIOUS.""")
 
     options, args = parser.parse_args(sys.argv)
 
-    builddir = run_command('echo $BUILDDIR').strip()
+    builddir = get_build_dir()
     if len(builddir) == 0:
         err_quit("Please source file \"oe-init-build-env\" first.\n")
 
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-05-19 14:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-18 20:08 [PATCH 1/2] cleanup-workdir: add a method for getting the build dir Lucas Dutra Nunes
2015-05-18 20:08 ` [PATCH 2/2] cleanup-workdir: wait for bitbake instances to finish Lucas Dutra Nunes
2015-05-18 22:23   ` Christopher Larson
2015-05-18 22:26     ` Otavio Salvador
2015-05-19  4:53       ` Anders Darander
2015-05-19 14:21     ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.