Skip to content

Commit 51a3f2e

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "delete __pycache__ directory with sudo privileges"
2 parents d9e2d10 + 85340e7 commit 51a3f2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

functions-common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ function git_clone {
646646
# remove the existing ignored files (like pyc) as they cause breakage
647647
# (due to the py files having older timestamps than our pyc, so python
648648
# thinks the pyc files are correct using them)
649-
find $git_dest -name '*.pyc' -delete
649+
sudo find $git_dest -name '*.pyc' -delete
650650

651651
# handle git_ref accordingly to type (tag, branch)
652652
if [[ -n "`git show-ref refs/tags/$git_ref`" ]]; then

0 commit comments

Comments
 (0)