Skip to content

Commit 877d9c1

Browse files
committed
pushpkg: if noarch rsync ignore existing
1 parent 298e25d commit 877d9c1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pushpkg/pushpkg

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,12 @@ fi
7474

7575
ssh ${ARGS_SSH} ${USERNAME}@repo.aosc.io "mkdir -p /mirror/debs/pool/${BRANCH}/${COMPOMENT}"
7676

77-
for i in debs/*/; do
78-
rsync ${ARGS_RSYNC} -rlOvhze ssh --progress $i ${USERNAME}@repo.aosc.io:/mirror/debs/pool/${BRANCH}/${COMPOMENT}
77+
for i in debs/*/*; do
78+
if [ $i = "*_noarch.deb" ]; then
79+
rsync ${ARGS_RSYNC} -ignore-existing -rlOvhze ssh --progress $i ${USERNAME}@repo.aosc.io:/mirror/debs/pool/${BRANCH}/${COMPOMENT}
80+
else
81+
rsync ${ARGS_RSYNC} -rlOvhze ssh --progress $i ${USERNAME}@repo.aosc.io:/mirror/debs/pool/${BRANCH}/${COMPOMENT}
82+
fi
7983
done
8084

8185
if [ $AFTER_CLEAN_DIRECTORY = 1 ]; then

0 commit comments

Comments
 (0)