File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -219,10 +219,17 @@ def make_xbps_bulk_cmd(props):
219219
220220@util .renderer
221221def 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 """
224231echo "=> 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/ \
You can’t perform that action at this time.
0 commit comments