summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bb/fetch/__init__.py')
-rw-r--r--lib/bb/fetch/__init__.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/bb/fetch/__init__.py b/lib/bb/fetch/__init__.py
index d68a1f166..da5b10c4b 100644
--- a/lib/bb/fetch/__init__.py
+++ b/lib/bb/fetch/__init__.py
@@ -149,6 +149,15 @@ class Fetch(object):
"""Fetch urls"""
raise NoMethodError("Missing implementation for url")
+ def getSRCDate(d):
+ """
+ Return the SRC Date for the component
+
+ d the bb.data module
+ """
+ return data.getVar("SRCDATE", d, 1) or data.getVar("CVSDATE", d, 1) or data.getVar("DATE", d, 1 )
+ getSRCDate = staticmethod(getSRCDate)
+
#if __name__ == "__main__":
import bk