diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-10-30 18:23:21 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-21 11:36:52 +0000 |
commit | 08d3f44d784e06f461b7d83ae9262566f1cf09e4 (patch) | |
tree | 6ebf8f0d03fbc62011893c76eaf5b71d90800eff | |
parent | 35c9fa0588ed8e88b541a6c80cc1517324616cea (diff) | |
download | poky-08d3f44d784e06f461b7d83ae9262566f1cf09e4.tar.gz |
bitbake: lib/fetch2: Tweak get_srcrev() function description
Tweak the comments on get_srcrev() to better describe its function.
(Bitbake rev: b4d40f1ac7b32990c456cce261f99a5a157b5ae5)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 190de9ed15..f97eaf4399 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -620,11 +620,13 @@ def get_autorev(d): | |||
620 | 620 | ||
621 | def get_srcrev(d): | 621 | def get_srcrev(d): |
622 | """ | 622 | """ |
623 | Return the version string for the current package | 623 | Return the revsion string, usually for use in the version string (PV) of the current package |
624 | (usually to be used as PV) | ||
625 | Most packages usually only have one SCM so we just pass on the call. | 624 | Most packages usually only have one SCM so we just pass on the call. |
626 | In the multi SCM case, we build a value based on SRCREV_FORMAT which must | 625 | In the multi SCM case, we build a value based on SRCREV_FORMAT which must |
627 | have been set. | 626 | have been set. |
627 | |||
628 | The idea here is that we put the string "AUTOINC+" into return value if the revisions are not | ||
629 | incremental, other code is then responsible for turning that into an increasing value (if needed) | ||
628 | """ | 630 | """ |
629 | 631 | ||
630 | scms = [] | 632 | scms = [] |