summaryrefslogtreecommitdiff
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)
downloadopenembedded-core-186f85746668b0dfa8d887248a1384db298af5f5.tar.gz
openembedded-core-186f85746668b0dfa8d887248a1384db298af5f5.tar.bz2
openembedded-core-186f85746668b0dfa8d887248a1384db298af5f5.tar.xz
openembedded-core-186f85746668b0dfa8d887248a1384db298af5f5.zip
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 9d21b3314..2b38065de 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -609,7 +609,7 @@ class BBCooker:
Setup any variables needed before starting a build
"""
if not bb.data.getVar("BUILDNAME", self.configuration.data):
- bb.data.setVar("BUILDNAME", os.popen('date +%Y%m%d%H%M').readline().strip(), self.configuration.data)
+ bb.data.setVar("BUILDNAME", time.strftime('%Y%m%d%H%M'), self.configuration.data)
bb.data.setVar("BUILDSTART", time.strftime('%m/%d/%Y %H:%M:%S', time.gmtime()), self.configuration.data)
def matchFiles(self, buildfile):