summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-04-04 09:36:45 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-06 18:05:11 +0100
commit754d1c69839982b7cdd49839a398e688c0ad9a9b (patch)
treee848f86280222186e0cb7311afe2e55024192dd0 /bitbake/lib/bb/fetch
parent824acff967ff74c0a678bf8accc4a514653f5783 (diff)
downloadpoky-754d1c69839982b7cdd49839a398e688c0ad9a9b.tar.gz
persist_data: implement comparison, same as dict
(Bitbake rev: 1190406c526c7bb7cf415867be83e0403812a7dd) 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/git.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py
index 35908ca8d4..9a51ed1387 100644
--- a/bitbake/lib/bb/fetch/git.py
+++ b/bitbake/lib/bb/fetch/git.py
@@ -242,8 +242,7 @@ class Git(Fetch):
242 """ 242 """
243 Look in the cache for the latest revision, if not present ask the SCM. 243 Look in the cache for the latest revision, if not present ask the SCM.
244 """ 244 """
245 persisted = bb.persist_data.persist(d) 245 revs = bb.persist_data.persist('BB_URI_HEADREVS', d)
246 revs = persisted['BB_URI_HEADREVS']
247 246
248 key = self.generate_revision_key(url, ud, d, branch=True) 247 key = self.generate_revision_key(url, ud, d, branch=True)
249 248
@@ -265,8 +264,7 @@ class Git(Fetch):
265 """ 264 """
266 265
267 """ 266 """
268 pd = bb.persist_data.persist(d) 267 localcounts = bb.persist_data.persist('BB_URI_LOCALCOUNT', d)
269 localcounts = pd['BB_URI_LOCALCOUNT']
270 key = self.generate_revision_key(url, ud, d, branch=True) 268 key = self.generate_revision_key(url, ud, d, branch=True)
271 oldkey = self.generate_revision_key(url, ud, d, branch=False) 269 oldkey = self.generate_revision_key(url, ud, d, branch=False)
272 270