cmdlib: Factorize lock releasing
authorMichael Hanselmann <hansmi@google.com>
Thu, 28 Apr 2011 14:24:20 +0000 (16:24 +0200)
committerMichael Hanselmann <hansmi@google.com>
Fri, 29 Apr 2011 14:15:04 +0000 (16:15 +0200)
commit52f3310349e34843fdcb00ae993766eeb6c05cc5
tree2331f73a86cd42de1f21cc2587188ec8f18d2caf
parent3de8301d3b9168e607ce85718dd8c7eacf0dc6cb
cmdlib: Factorize lock releasing

There will be more lock releasing with upcoming changes, so this will
centralize the logic behind it (what locks to keep, which variables to
update, etc.).

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/cmdlib.py