diff options
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 7 |
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): | |||
97 | if url not in urldata[fn]: | 97 | if url not in urldata[fn]: |
98 | ud = FetchData() | 98 | ud = FetchData() |
99 | (ud.type, ud.host, ud.path, ud.user, ud.pswd, ud.parm) = bb.decodeurl(data.expand(url, d)) | 99 | (ud.type, ud.host, ud.path, ud.user, ud.pswd, ud.parm) = bb.decodeurl(data.expand(url, d)) |
100 | ud.date = Fetch.getSRCDate(d) | 100 | ud.date = Fetch.getSRCDate(ud, d) |
101 | for m in methods: | 101 | for m in methods: |
102 | if m.supports(url, ud, d): | 102 | if m.supports(url, ud, d): |
103 | ud.localpath = m.localpath(url, ud, d) | 103 | ud.localpath = m.localpath(url, ud, d) |
@@ -190,12 +190,15 @@ class Fetch(object): | |||
190 | """ | 190 | """ |
191 | raise NoMethodError("Missing implementation for url") | 191 | raise NoMethodError("Missing implementation for url") |
192 | 192 | ||
193 | def getSRCDate(d): | 193 | def getSRCDate(urldata, d): |
194 | """ | 194 | """ |
195 | Return the SRC Date for the component | 195 | Return the SRC Date for the component |
196 | 196 | ||
197 | d the bb.data module | 197 | d the bb.data module |
198 | """ | 198 | """ |
199 | if "srcdate" in urldata.parm: | ||
200 | return urldata.parm['srcdate'] | ||
201 | |||
199 | pn = data.getVar("PN", d, 1) | 202 | pn = data.getVar("PN", d, 1) |
200 | 203 | ||
201 | if pn: | 204 | if pn: |