summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-12-06 16:29:47 +0000
committerRichard Purdie <richard@openedhand.com>2006-12-06 16:29:47 +0000
commitb142185345e09d98e09a086f5aecd0d8426386fb (patch)
tree261ea935079b95d7a0e7337e80e1d1ed439c5843
parentaac2b8d7471c74d8e5d559c17df2140b110fa170 (diff)
downloadopenembedded-core-b142185345e09d98e09a086f5aecd0d8426386fb.tar.gz
openembedded-core-b142185345e09d98e09a086f5aecd0d8426386fb.tar.bz2
openembedded-core-b142185345e09d98e09a086f5aecd0d8426386fb.zip
fetch/__init__.py: Allow srcdate to be overridden in SRC_URI
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1015 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--bitbake/lib/bb/fetch/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index 84a80d1e57..3521ece76b 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -97,7 +97,7 @@ def initdata(url, d):
if url not in urldata[fn]:
ud = FetchData()
(ud.type, ud.host, ud.path, ud.user, ud.pswd, ud.parm) = bb.decodeurl(data.expand(url, d))
- ud.date = Fetch.getSRCDate(d)
+ ud.date = Fetch.getSRCDate(ud, d)
for m in methods:
if m.supports(url, ud, d):
ud.localpath = m.localpath(url, ud, d)
@@ -190,12 +190,15 @@ class Fetch(object):
"""
raise NoMethodError("Missing implementation for url")
- def getSRCDate(d):
+ def getSRCDate(urldata, d):
"""
Return the SRC Date for the component
d the bb.data module
"""
+ if "srcdate" in urldata.parm:
+ return urldata.parm['srcdate']
+
pn = data.getVar("PN", d, 1)
if pn: