summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-11-17 11:55:21 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:41 +0000
commitd0d67a9fe279d26423494946666a5ca0acc5d66f (patch)
treeced09a3e737f86f6c081a5d8300320eaafb729fe /bitbake/lib/bb/fetch
parent814c80f53c29802153120f95dfdb5750e3fb09cc (diff)
downloadpoky-d0d67a9fe279d26423494946666a5ca0acc5d66f.tar.gz
fetch: rename suppports_srcrev to supports_srcrev
osc had it already spelled correctly?! (Bitbake rev: b8bb4433de7a981c6826173e926ca34705c4ac70) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/fetch')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py6
-rw-r--r--bitbake/lib/bb/fetch/bzr.py2
-rw-r--r--bitbake/lib/bb/fetch/git.py2
-rw-r--r--bitbake/lib/bb/fetch/hg.py2
-rw-r--r--bitbake/lib/bb/fetch/repo.py2
-rw-r--r--bitbake/lib/bb/fetch/svn.py2
6 files changed, 8 insertions, 8 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index 40b0c699ab..faf7fc489f 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -385,11 +385,11 @@ def get_srcrev(d):
385 385
386 scms = [] 386 scms = []
387 387
388 # Only call setup_localpath on URIs which suppports_srcrev() 388 # Only call setup_localpath on URIs which supports_srcrev()
389 urldata = init(bb.data.getVar('SRC_URI', d, 1).split(), d, False) 389 urldata = init(bb.data.getVar('SRC_URI', d, 1).split(), d, False)
390 for u in urldata: 390 for u in urldata:
391 ud = urldata[u] 391 ud = urldata[u]
392 if ud.method.suppports_srcrev(): 392 if ud.method.supports_srcrev():
393 if not ud.setup: 393 if not ud.setup:
394 ud.setup_localpath(d) 394 ud.setup_localpath(d)
395 scms.append(u) 395 scms.append(u)
@@ -622,7 +622,7 @@ class Fetch(object):
622 """ 622 """
623 return False 623 return False
624 624
625 def suppports_srcrev(self): 625 def supports_srcrev(self):
626 """ 626 """
627 The fetcher supports auto source revisions (SRCREV) 627 The fetcher supports auto source revisions (SRCREV)
628 """ 628 """
diff --git a/bitbake/lib/bb/fetch/bzr.py b/bitbake/lib/bb/fetch/bzr.py
index 3ca125f370..4cd51cb337 100644
--- a/bitbake/lib/bb/fetch/bzr.py
+++ b/bitbake/lib/bb/fetch/bzr.py
@@ -116,7 +116,7 @@ class Bzr(Fetch):
116 pass 116 pass
117 raise t, v, tb 117 raise t, v, tb
118 118
119 def suppports_srcrev(self): 119 def supports_srcrev(self):
120 return True 120 return True
121 121
122 def _revision_key(self, url, ud, d): 122 def _revision_key(self, url, ud, d):
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py
index 8a00a013f9..a2fbd78cbf 100644
--- a/bitbake/lib/bb/fetch/git.py
+++ b/bitbake/lib/bb/fetch/git.py
@@ -192,7 +192,7 @@ class Git(Fetch):
192 os.chdir(ud.clonedir) 192 os.chdir(ud.clonedir)
193 bb.utils.prunedir(codir) 193 bb.utils.prunedir(codir)
194 194
195 def suppports_srcrev(self): 195 def supports_srcrev(self):
196 return True 196 return True
197 197
198 def _contains_ref(self, tag, d): 198 def _contains_ref(self, tag, d):
diff --git a/bitbake/lib/bb/fetch/hg.py b/bitbake/lib/bb/fetch/hg.py
index ca3a084bb6..264a52da9f 100644
--- a/bitbake/lib/bb/fetch/hg.py
+++ b/bitbake/lib/bb/fetch/hg.py
@@ -162,7 +162,7 @@ class Hg(Fetch):
162 pass 162 pass
163 raise t, v, tb 163 raise t, v, tb
164 164
165 def suppports_srcrev(self): 165 def supports_srcrev(self):
166 return True 166 return True
167 167
168 def _latest_revision(self, url, ud, d): 168 def _latest_revision(self, url, ud, d):
diff --git a/bitbake/lib/bb/fetch/repo.py b/bitbake/lib/bb/fetch/repo.py
index 4794796814..bafdb2a179 100644
--- a/bitbake/lib/bb/fetch/repo.py
+++ b/bitbake/lib/bb/fetch/repo.py
@@ -95,7 +95,7 @@ class Repo(Fetch):
95 # Create a cache 95 # Create a cache
96 runfetchcmd("tar --exclude=.repo --exclude=.git -czf %s %s" % (ud.localpath, os.path.join(".", "*") ), d) 96 runfetchcmd("tar --exclude=.repo --exclude=.git -czf %s %s" % (ud.localpath, os.path.join(".", "*") ), d)
97 97
98 def suppports_srcrev(self): 98 def supports_srcrev(self):
99 return False 99 return False
100 100
101 def _build_revision(self, url, ud, d): 101 def _build_revision(self, url, ud, d):
diff --git a/bitbake/lib/bb/fetch/svn.py b/bitbake/lib/bb/fetch/svn.py
index c236e413fd..538b4c2a2d 100644
--- a/bitbake/lib/bb/fetch/svn.py
+++ b/bitbake/lib/bb/fetch/svn.py
@@ -168,7 +168,7 @@ class Svn(Fetch):
168 pass 168 pass
169 raise t, v, tb 169 raise t, v, tb
170 170
171 def suppports_srcrev(self): 171 def supports_srcrev(self):
172 return True 172 return True
173 173
174 def _revision_key(self, url, ud, d): 174 def _revision_key(self, url, ud, d):