From 754d1c69839982b7cdd49839a398e688c0ad9a9b Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Mon, 4 Apr 2011 09:36:45 -0700 Subject: persist_data: implement comparison, same as dict (Bitbake rev: 1190406c526c7bb7cf415867be83e0403812a7dd) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch/git.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bitbake/lib/bb/fetch/git.py') 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): """ Look in the cache for the latest revision, if not present ask the SCM. """ - persisted = bb.persist_data.persist(d) - revs = persisted['BB_URI_HEADREVS'] + revs = bb.persist_data.persist('BB_URI_HEADREVS', d) key = self.generate_revision_key(url, ud, d, branch=True) @@ -265,8 +264,7 @@ class Git(Fetch): """ """ - pd = bb.persist_data.persist(d) - localcounts = pd['BB_URI_LOCALCOUNT'] + localcounts = bb.persist_data.persist('BB_URI_LOCALCOUNT', d) key = self.generate_revision_key(url, ud, d, branch=True) oldkey = self.generate_revision_key(url, ud, d, branch=False) -- cgit v1.2.3-54-g00ecf