File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -65,21 +65,15 @@ find "${OUTPUT_DIR}" -maxdepth 1 -type f -delete -print
6565
6666ssh ${ARGS_SSH} " ${USERNAME} @repo.aosc.io" " mkdir -p '/mirror/debs/pool/${BRANCH} /${COMPOMENT} '"
6767
68- NOARCH_LIST_PATH= $( mktemp )
69- NOT_NOARCH_LIST_PATH= $( mktemp)
68+ pushd " $OUTPUT_DIR "
69+ NOARCH_LIST_PATH= " $( mktemp) "
7070find . -name ' *_noarch.deb' -print > " $NOARCH_LIST_PATH "
71- find . -not -name ' *_noarch.deb' -print > " $NOT_NOARCH_LIST_PATH "
72-
73- for i in " $NOARCH_LIST_PATH " ; do
74- rsync ${ARGS_RSYNC} -rlOvhze ssh --progress --ignore-existing $i " ${USERNAME} @repo.aosc.io:/mirror/debs/pool/${BRANCH} /${COMPOMENT} /$( basename $( dirname $i ) /"
75- done
76-
77- for i in " $NOT_NOARCH_LIST_PATH " ; do
78- rsync ${ARGS_RSYNC} -rlOvhze ssh --progress $i " ${USERNAME} @repo.aosc.io:/mirror/debs/pool/${BRANCH} /${COMPOMENT} /$( basename $( dirname $i ) /"
79- done
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
8074
8175rm -v " $NOARCH_LIST_PATH " " $NOT_NOARCH_LIST_PATH "
8276
8377if [ $AFTER_CLEAN_DIRECTORY = 1 ]; then
84- sudo rm -rv " $( pwd ) /debs "
78+ sudo rm -rv " $OUTPUT_DIR "
8579fi
You can’t perform that action at this time.
0 commit comments