summaryrefslogtreecommitdiffstats
path: root/lib/bb/persist_data.py
AgeCommit message (Collapse)Author
2011-02-08persist_data: kill unreachable break lineChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-02-08persist_data: loop on database lock for table creationChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-01-10persist_data: Don't loop forever waiting on database locksRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-12-23persist_data: unbork the resurrect of select lock waitChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-23persist_data: resurrect the lock wait for selectsChris Larson
Think this got inadvertantly dropped when switching to the new API. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-10Rework the persist_data APIChris Larson
Rather than having to run .addDomain() and then .getValue(domain, key), .setValue(domain, key), etc, now it just works as mappings. As an example: setValue(domain, key) -> persist[domain][key] = value It also arranges things so we can construct objects of this type using any arbitrary filename/path for the sqlite3 database, rather than being so tightly bound to the metadata. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-19Revert "persist_data: cache connection and use cursor"Chris Larson
Caching the database connection can cause serious issues if it results in multiple processes (e.g. multiple tasks) simultaneously using the same connection. This reverts commit 8a6876752b90efd81d92f0947bfc9527d8260969. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-18persist_data: handle locked db for SELECTChris Larson
Parallel processes interacting with the persist_data db can quite easily explode without this. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-09-03Switch bitbake internals to use logging directly rather than bb.msgChris Larson
We use a custom Logger subclass for our loggers This logger provides: - 'debug' method which accepts a debug level - 'plain' method which bypasses log formatting - 'verbose' method which is more detail than info, but less than debug Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-06-04persist_data: cache connection and use cursorBernhard Reutner-Fischer
Store database connection to persistent database in fetcher. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-11Apply some 2to3 transforms that don't cause issues in 2.6Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-10Switch some references to moved functionsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-09Formatting cleanupsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2009-10-17Add a compare-versions command which returns whether the SRCREV versions ↵Richard Purdie
have changed since bitbake was last run (from Poky) Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
2008-05-11Allow to store the PersistData in a PERSISTENT_DIR.Holger Hans Peter Freyther
If PERSISTENT_DIR is used wiping the tmpdir will not wipe the PersistData which sometines is wanted (e.g. for git SRCREVs). Acked-By: Richard
2008-01-20persist_data.py: Add sqlite version checksRichard Purdie
2007-08-05persist_data: Retry if database locked, update MANIFESTRichard Purdie
2007-07-29persist_data.py: Try harder to import an sqlite package. Show how to change ↵Richard Purdie
the connection lock timeout
2007-07-29persist_data: Remove bogus testing codeRichard Purdie
2007-07-28Add persistent data store moduleRichard Purdie