diff options
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 5cd7061cf4..95841b453e 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -683,12 +683,12 @@ class FetchData(object): | |||
683 | if "srcdate" in self.parm: | 683 | if "srcdate" in self.parm: |
684 | return self.parm['srcdate'] | 684 | return self.parm['srcdate'] |
685 | 685 | ||
686 | pn = data.getVar("PN", d, 1) | 686 | pn = data.getVar("PN", d, True) |
687 | 687 | ||
688 | if pn: | 688 | if pn: |
689 | return data.getVar("SRCDATE_%s" % pn, d, 1) or data.getVar("CVSDATE_%s" % pn, d, 1) or data.getVar("SRCDATE", d, 1) or data.getVar("CVSDATE", d, 1) or data.getVar("DATE", d, 1) | 689 | return data.getVar("SRCDATE_%s" % pn, d, True) or data.getVar("SRCDATE", d, True) or data.getVar("DATE", d, True) |
690 | 690 | ||
691 | return data.getVar("SRCDATE", d, 1) or data.getVar("CVSDATE", d, 1) or data.getVar("DATE", d, 1) | 691 | return data.getVar("SRCDATE", d, True) or data.getVar("DATE", d, True) |
692 | 692 | ||
693 | class FetchMethod(object): | 693 | class FetchMethod(object): |
694 | """Base class for 'fetch'ing data""" | 694 | """Base class for 'fetch'ing data""" |