Skip to content

Commit e65291e

Browse files
committed
services/nomad/build/buildbot: fix syncing packages multiple times
1 parent 38a89e0 commit e65291e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

services/nomad/build/buildbot.cfg

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,17 @@ def make_xbps_bulk_cmd(props):
219219

220220
@util.renderer
221221
def make_rsync_cmd(props):
222+
target = props.getProperty('target')
223+
if target.startswith("aarch64"):
224+
final_dest = "/mirror/current/aarch64/"
225+
elif target.endswith("musl"):
226+
final_dest = "/mirror/current/musl/"
227+
else:
228+
final_dest = "/mirror/current/"
222229
return ['bash', '-e', '-c',
223-
util.Interpolate("""
230+
util.Interpolate(f"""
224231
echo "=> Syncing packages to the shadow repository..."
225-
rsync -vurk --delete-after \
232+
rsync -vurk --delete-after --compare-dest={final_dest} \
226233
--filter='+ */' --filter='+ *.%(prop:target)s.xbps' \
227234
--filter='- .*' --filter='- *' \
228235
--password-file=/secrets/rsync/password /hostdir/binpkgs/ \

0 commit comments

Comments
 (0)