script/autobuild.py: split out a rmdir_force() helper function
commitc933135969be29072971f96481b05f499fd48b57
authorStefan Metzmacher <metze@samba.org>
Fri, 20 Nov 2020 09:20:14 +0000 (20 09:20 +0000)
committerKarolin Seeger <kseeger@samba.org>
Tue, 2 Feb 2021 09:20:10 +0000 (2 09:20 +0000)
tree03e52556cae53fea2760f444272bd3bbdcb7078a
parentc1a4cb97d1d71b974eed2ecb5f34bb1425f36294
script/autobuild.py: split out a rmdir_force() helper function

That also tries to re-add write permissions before removing.
In future we'll have jobs changing there directory to read-only.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14628

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 7a5df2deaaf62a7edd7c64251f75ab15abe94c07)
script/autobuild.py