summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index a83526a5d0..cb2f325a83 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -837,14 +837,16 @@ def runfetchcmd(cmd, d, quiet=False, cleanup=None, log=None, workdir=None):
837 if not cleanup: 837 if not cleanup:
838 cleanup = [] 838 cleanup = []
839 839
840 # If PATH contains WORKDIR which contains PV which contains SRCPV we 840 # If PATH contains WORKDIR which contains PV-PR which contains SRCPV we
841 # can end up in circular recursion here so give the option of breaking it 841 # can end up in circular recursion here so give the option of breaking it
842 # in a data store copy. 842 # in a data store copy.
843 try: 843 try:
844 d.getVar("PV") 844 d.getVar("PV")
845 d.getVar("PR")
845 except bb.data_smart.ExpansionError: 846 except bb.data_smart.ExpansionError:
846 d = bb.data.createCopy(d) 847 d = bb.data.createCopy(d)
847 d.setVar("PV", "fetcheravoidrecurse") 848 d.setVar("PV", "fetcheravoidrecurse")
849 d.setVar("PR", "fetcheravoidrecurse")
848 850
849 origenv = d.getVar("BB_ORIGENV", False) 851 origenv = d.getVar("BB_ORIGENV", False)
850 for var in exportvars: 852 for var in exportvars: