summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-07 20:50:05 +0200
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:35 +0100
commit186f85746668b0dfa8d887248a1384db298af5f5 (patch)
treef8344af16fe1fcf2386c8e87e1f522313f3ffcef /bitbake/lib
parent04050117347ff2313245a6e47d4fcc5a2baf54a8 (diff)
downloadpoky-186f85746668b0dfa8d887248a1384db298af5f5.tar.gz
cooker: use time.strftime() instead of spawing sh with date
time.strftime() defaults to using time.localtime(), use that instead of spawning "sh -c 'date +<FMT>'" (Bitbake rev: ec1f2773b4811b3beb52710120bb5a9b215c174e) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/cooker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 9d21b33143..2b38065de2 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -609,7 +609,7 @@ class BBCooker:
609 Setup any variables needed before starting a build 609 Setup any variables needed before starting a build
610 """ 610 """
611 if not bb.data.getVar("BUILDNAME", self.configuration.data): 611 if not bb.data.getVar("BUILDNAME", self.configuration.data):
612 bb.data.setVar("BUILDNAME", os.popen('date +%Y%m%d%H%M').readline().strip(), self.configuration.data) 612 bb.data.setVar("BUILDNAME", time.strftime('%Y%m%d%H%M'), self.configuration.data)
613 bb.data.setVar("BUILDSTART", time.strftime('%m/%d/%Y %H:%M:%S', time.gmtime()), self.configuration.data) 613 bb.data.setVar("BUILDSTART", time.strftime('%m/%d/%Y %H:%M:%S', time.gmtime()), self.configuration.data)
614 614
615 def matchFiles(self, buildfile): 615 def matchFiles(self, buildfile):