script/autobuild.py: split out a rmdir_force() helper function
commit00df0473da5d5e80ce97baa7efd0db3316d4eb90
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 10:13:11 +0000 (3 10:13 +0000)
treec292e8bd702f356ebbfb70b79c993a7930efede5
parentf31f1e75d7f24cbad3b2bc2c0307a09b3a1f6717
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