Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions services/nomad/build/buildbot.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,17 @@ def make_xbps_bulk_cmd(props):

@util.renderer
def make_rsync_cmd(props):
target = props.getProperty('target')
if target.startswith("aarch64"):
final_dest = "/mirror/current/aarch64/"
elif target.endswith("musl"):
final_dest = "/mirror/current/musl/"
else:
final_dest = "/mirror/current/"
return ['bash', '-e', '-c',
util.Interpolate("""
util.Interpolate(f"""
echo "=> Syncing packages to the shadow repository..."
rsync -vurk --delete-after \
rsync -vurk --delete-after --compare-dest={final_dest} \
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--filter='+ */' --filter='+ *.%(prop:target)s.xbps' \
--filter='- .*' --filter='- *' \
--password-file=/secrets/rsync/password /hostdir/binpkgs/ \
Expand Down