script/autobuild.py: split out a rmdir_force() helper function
commit6d93064e1881f749d4b0a08e0c09eb58cab477c6
authorStefan Metzmacher <metze@samba.org>
Fri, 20 Nov 2020 09:20:14 +0000 (20 09:20 +0000)
committerKarolin Seeger <kseeger@samba.org>
Wed, 3 Mar 2021 08:11:09 +0000 (3 08:11 +0000)
tree72ea14f64a72bdeb1547b924b1e5551325be5a0c
parent35dc71bbc19a7f6e36af6bad74f990cfe38db59a
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)
(cherry picked from commit c933135969be29072971f96481b05f499fd48b57)
script/autobuild.py