time.strftime() defaults to using time.localtime(), use that instead of spawning "sh -c 'date +<FMT>'"
Signed-off-by: Bernhard Reutner-Fischer <[email protected]> --- lib/bb/cooker.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index e4f2950..d055e03 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -620,7 +620,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): -- 1.7.1 _______________________________________________ Bitbake-dev mailing list [email protected] https://lists.berlios.de/mailman/listinfo/bitbake-dev
