summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/__init__.py')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py21
1 files changed, 9 insertions, 12 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index f53467e73b..0bb90976e3 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -558,18 +558,6 @@ class FetchData(object):
558 if hasattr(self.method, "urldata_init"): 558 if hasattr(self.method, "urldata_init"):
559 self.method.urldata_init(self, d) 559 self.method.urldata_init(self, d)
560 560
561 if self.method.supports_srcrev():
562 self.revisions = {}
563 for name in self.names:
564 self.revisions[name] = srcrev_internal_helper(self, d, name)
565
566 # add compatibility code for non name specified case
567 if len(self.names) == 1:
568 self.revision = self.revisions[self.names[0]]
569
570 if hasattr(self.method, "fixuprevisions"):
571 self.method.fixuprevisions(self, d)
572
573 if "localpath" in self.parm: 561 if "localpath" in self.parm:
574 # if user sets localpath for file, use it instead. 562 # if user sets localpath for file, use it instead.
575 self.localpath = self.parm["localpath"] 563 self.localpath = self.parm["localpath"]
@@ -582,6 +570,15 @@ class FetchData(object):
582 self.donestamp = basepath + '.done' 570 self.donestamp = basepath + '.done'
583 self.lockfile = basepath + '.lock' 571 self.lockfile = basepath + '.lock'
584 572
573 def setup_revisons(self, d):
574 self.revisions = {}
575 for name in self.names:
576 self.revisions[name] = srcrev_internal_helper(self, d, name)
577
578 # add compatibility code for non name specified case
579 if len(self.names) == 1:
580 self.revision = self.revisions[self.names[0]]
581
585 def setup_localpath(self, d): 582 def setup_localpath(self, d):
586 if not self.localpath: 583 if not self.localpath:
587 self.localpath = self.method.localpath(self.url, self, d) 584 self.localpath = self.method.localpath(self.url, self, d)