File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,6 @@ function chroot_build_builder() {
102
102
local archive_dir=" tmp/archives/$( _get_info_image " $dist " " name" ) "
103
103
104
104
local distcc_hosts=" $__builder_distcc_hosts "
105
- if [[ -d " $rootdir /admin/crosscomp/$dist " ]]; then
106
- rp_callModule crosscomp switch_distcc " $dist "
107
- [[ -z " $distcc_hosts " ]] && distcc_hosts=" $ip "
108
- fi
109
105
110
106
local use_ccache=" $__builder_use_ccache "
111
107
@@ -127,7 +123,24 @@ function chroot_build_builder() {
127
123
mkdir -p " $scriptdir /$archive_dir " " $chroot_rps_dir /$archive_dir "
128
124
rsync -av " $scriptdir /$archive_dir /" " $chroot_rps_dir /$archive_dir /"
129
125
else
130
- rp_callModule image chroot " $chroot_dir " git -C /home/pi/RetroPie-Setup pull
126
+ rp_callModule image chroot " $chroot_dir " bash -c "
127
+ cd ~/RetroPie-Setup
128
+ git checkout master
129
+ git pull
130
+ if git remote | grep -q builder; then
131
+ git branch -D builder-branch
132
+ git remote remove builder
133
+ fi
134
+ "
135
+ # if we have a __builder_repo and __builder_branch set, check out the branch and use that
136
+ if [[ -n " $__builder_repo " && " $__builder_branch " ]]; then
137
+ rp_callModule image chroot " $chroot_dir " bash -c "
138
+ cd ~/RetroPie-Setup
139
+ git remote add builder $__builder_repo
140
+ git fetch -q builder
141
+ git checkout builder/$__builder_branch -b builder-branch
142
+ "
143
+ fi
131
144
fi
132
145
133
146
for platform in $platforms ; do
You can’t perform that action at this time.
0 commit comments