summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-03-16 08:07:29 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-06 15:42:03 +0100
commit88dbb0523cfdc46c8f7e4484ce57c3f46fd475a1 (patch)
tree6d713979334869df56ee14acdb39ca742b9d2798 /bitbake/lib/bb/fetch
parent628bd54d936650d03ba2ffd0a08aade2f84529b1 (diff)
downloadpoky-88dbb0523cfdc46c8f7e4484ce57c3f46fd475a1.tar.gz
Initial work on getting bitbake working under pypy
- use os.chmod, not os.fchmod, as the latter is missing under pypy - rearrange our imports a bit - don't die if sqlite3 is missing shared cache support (Bitbake rev: f229824dc9c453adf6067500e2bf6761536e4f2f) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index 2f92d87d96..684e83dcad 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -153,7 +153,7 @@ def fetcher_init(d):
153 Called to initialize the fetchers once the configuration data is known. 153 Called to initialize the fetchers once the configuration data is known.
154 Calls before this must not hit the cache. 154 Calls before this must not hit the cache.
155 """ 155 """
156 pd = persist_data.persist(d) 156 pd = bb.persist_data.persist(d)
157 # When to drop SCM head revisions controlled by user policy 157 # When to drop SCM head revisions controlled by user policy
158 srcrev_policy = bb.data.getVar('BB_SRCREV_POLICY', d, 1) or "clear" 158 srcrev_policy = bb.data.getVar('BB_SRCREV_POLICY', d, 1) or "clear"
159 if srcrev_policy == "cache": 159 if srcrev_policy == "cache":
@@ -178,7 +178,7 @@ def fetcher_compare_revisions(d):
178 return true/false on whether they've changed. 178 return true/false on whether they've changed.
179 """ 179 """
180 180
181 pd = persist_data.persist(d) 181 pd = bb.persist_data.persist(d)
182 data = pd['BB_URI_HEADREVS'].items() 182 data = pd['BB_URI_HEADREVS'].items()
183 data2 = bb.fetch.saved_headrevs 183 data2 = bb.fetch.saved_headrevs
184 184
@@ -756,7 +756,7 @@ class Fetch(object):
756 if not hasattr(self, "_latest_revision"): 756 if not hasattr(self, "_latest_revision"):
757 raise ParameterError 757 raise ParameterError
758 758
759 pd = persist_data.persist(d) 759 pd = bb.persist_data.persist(d)
760 revs = pd['BB_URI_HEADREVS'] 760 revs = pd['BB_URI_HEADREVS']
761 key = self.generate_revision_key(url, ud, d) 761 key = self.generate_revision_key(url, ud, d)
762 rev = revs[key] 762 rev = revs[key]
@@ -773,7 +773,7 @@ class Fetch(object):
773 if hasattr(self, "_sortable_revision"): 773 if hasattr(self, "_sortable_revision"):
774 return self._sortable_revision(url, ud, d) 774 return self._sortable_revision(url, ud, d)
775 775
776 pd = persist_data.persist(d) 776 pd = bb.persist_data.persist(d)
777 localcounts = pd['BB_URI_LOCALCOUNT'] 777 localcounts = pd['BB_URI_LOCALCOUNT']
778 key = self.generate_revision_key(url, ud, d) 778 key = self.generate_revision_key(url, ud, d)
779 779