summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
index 415fbf6d69..db17491787 100644
--- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
+++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
@@ -1405,8 +1405,8 @@ the task and other tasks. Here is an example that shows how to define a
1405task and declare some dependencies:: 1405task and declare some dependencies::
1406 1406
1407 python do_printdate () { 1407 python do_printdate () {
1408 import time 1408 import datetime
1409 print time.strftime('%Y%m%d', time.gmtime()) 1409 bb.plain('Date: %s' % (datetime.date.today()))
1410 } 1410 }
1411 addtask printdate after do_fetch before do_build 1411 addtask printdate after do_fetch before do_build
1412 1412