]> arthur.barton.de Git - bup.git/commit
PackWriter._end: always try to release objcache and parentfd
authorJohannes Berg <johannes@sipsolutions.net>
Sun, 5 Dec 2021 20:19:52 +0000 (21:19 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sat, 1 Jan 2022 20:08:00 +0000 (14:08 -0600)
commitdf6c10064ca8b30736fea347fca76cd7ca88f306
tree70210730805519856fc561094065fdd61ba7dd24
parentd75a9b7fafc1ff95b91b9ee5f38153e767144d1a
PackWriter._end: always try to release objcache and parentfd

Move the self.file guard inside the contextmanager.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
[rlb@defaultvalue.org: split from larger commit; adjust commit message]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/git.py