+2008-07-09: Paul Varner <fuzzyray@gentoo.org>
+ * gentoolkit: Fix gentoolkit to work without thread support in
+ python. (Bug 223255)
+
2008-06-16: Marius Mauch <genone@gentoo.org>
* euse: Add support for multi-parent profiles, account for missing
final newline in make.conf
sys.path.insert(0, "/usr/lib/portage/pym")
import portage
import re
-from threading import Lock
+try:
+ from threading import Lock
+except ImportError:
+ # If we don't have thread support, we don't need to worry about
+ # locking the global settings object. So we define a "null" Lock.
+ class Lock:
+ def acquire(self):
+ pass
+ def release(self):
+ pass
try:
import portage.exception as portage_exception