All of lore.kernel.org
 help / color / mirror / Atom feed
* How to identify WORKDIR?
@ 2012-03-14  9:01 Kang Kai
  2012-03-14  9:42 ` Richard Purdie
  0 siblings, 1 reply; 13+ messages in thread
From: Kang Kai @ 2012-03-14  9:01 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Richard Purdie

[-- Attachment #1: Type: text/plain, Size: 432 bytes --]

Hi All,

I write a script to clean up WORKDIR that remove the obsoleted packages' 
build directories.
The script accept a argument as BUILDDIR and I use this clause to 
identify the WORKDIR:

      workdir = os.path.join(builddir, 'tmp/work')

Then validate the workdir exists or not. It works for me but hardcode 
here as Richard point out.
So is there  a better way to get the WORKDIR here? Thanks.

Regards,
Kai


[-- Attachment #2: Type: text/html, Size: 777 bytes --]

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

end of thread, other threads:[~2012-03-19 23:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-14  9:01 How to identify WORKDIR? Kang Kai
2012-03-14  9:42 ` Richard Purdie
2012-03-15  6:55   ` Kang Kai
2012-03-15  7:40     ` Kang Kai
2012-03-15  8:03       ` Martin Jansa
2012-03-15  9:09         ` Kang Kai
2012-03-15  9:21           ` Martin Jansa
2012-03-15  9:34             ` Kang Kai
2012-03-15 18:18             ` Denys Dmytriyenko
2012-03-16  6:41               ` Martin Jansa
2012-03-19 20:32                 ` Denys Dmytriyenko
2012-03-19 21:37                   ` Christopher Larson
2012-03-19 21:51                     ` Denys Dmytriyenko

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.