summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/__init__.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-30 18:23:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-21 11:35:37 +0000
commitb4d40f1ac7b32990c456cce261f99a5a157b5ae5 (patch)
tree4c1b6a265bd686741320febe50bc5cf568bc0415 /lib/bb/fetch2/__init__.py
parent8118f465b9f87c66b2a741008f69198ac5fea901 (diff)
downloadopenembedded-core-contrib-b4d40f1ac7b32990c456cce261f99a5a157b5ae5.tar.gz
lib/fetch2: Tweak get_srcrev() function description
Tweak the comments on get_srcrev() to better describe its function. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/__init__.py')
-rw-r--r--lib/bb/fetch2/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index 190de9ed15..f97eaf4399 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -620,11 +620,13 @@ def get_autorev(d):
def get_srcrev(d):
"""
- Return the version string for the current package
- (usually to be used as PV)
+ Return the revsion string, usually for use in the version string (PV) of the current package
Most packages usually only have one SCM so we just pass on the call.
In the multi SCM case, we build a value based on SRCREV_FORMAT which must
have been set.
+
+ The idea here is that we put the string "AUTOINC+" into return value if the revisions are not
+ incremental, other code is then responsible for turning that into an increasing value (if needed)
"""
scms = []