]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toasterui: do not use transactions if the database autocommits
authorAlexandru DAMIAN <alexandru.damian@intel.com>
Thu, 26 Feb 2015 21:41:58 +0000 (21:41 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 Feb 2015 07:35:09 +0000 (07:35 +0000)
commit90231ab63a129fa344d461c2911898ea0f07f206
tree98273f48aaedaaf5a15122d7b0a2d4ca0bd33f3b
parent09171a892935d46ed32162b2d0f4a536c546facc
toasterui: do not use transactions if the database autocommits

Some databases, notably the SQLite3 adapter, force autocommits even if
the autocommit is turned off. The behavious is tracked in this bug:
http://bugs.python.org/issue8145#msg109965

Django refuses to work with autocommit off in this case, so we have
to take the same precautions when using manual transaction support.

[YOCTO #7363]
[YOCTO #7365]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/ui/buildinfohelper.py