File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,16 @@ OUTPUT_DIR="$(readlink -f debs)"
6464find " ${OUTPUT_DIR} " -maxdepth 1 -type f -delete -print
6565
6666ssh ${ARGS_SSH} " ${USERNAME} @repo.aosc.io" " mkdir -p '/mirror/debs/pool/${BRANCH} /${COMPOMENT} '"
67- rsync -rlOvhze ssh --progress " ${OUTPUT_DIR} " /* " ${USERNAME} @repo.aosc.io:/mirror/debs/pool/${BRANCH} /${COMPOMENT} "
67+
68+ pushd " $OUTPUT_DIR "
69+ NOARCH_LIST_PATH=" $( mktemp) "
70+ find . -name ' *_noarch.deb' -print > " $NOARCH_LIST_PATH "
71+ rsync ${ARGS_RSYNC} -rlOvhze ssh --progress --exclude-from " $NOARCH_LIST_PATH " . " ${USERNAME} @repo.aosc.io:/mirror/debs/pool/${BRANCH} /${COMPOMENT} /"
72+ rsync ${ARGS_RSYNC} -rlOvhze ssh --progress --ignore-existing --files-from " $NOARCH_LIST_PATH " . " ${USERNAME} @repo.aosc.io:/mirror/debs/pool/${BRANCH} /${COMPOMENT} /"
73+ popd
74+
75+ rm -v " $NOARCH_LIST_PATH " " $NOT_NOARCH_LIST_PATH "
6876
6977if [ $AFTER_CLEAN_DIRECTORY = 1 ]; then
70- sudo rm -rv " $( pwd ) /debs "
78+ sudo rm -rv " $OUTPUT_DIR "
7179fi
You can’t perform that action at this time.
0 commit comments