commitpkg: check if there are any packages to process before doing so
This commit is contained in:
parent
246b8ead60
commit
a23d93ce7f
22
commitpkg.in
22
commitpkg.in
|
@ -183,19 +183,21 @@ for _arch in ${arch[@]}; do
|
||||||
commit_arches+=($_arch)
|
commit_arches+=($_arch)
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
archrelease "${archreleaseopts[@]}" "${commit_arches[@]/#/$repo-}" || die
|
|
||||||
|
|
||||||
new_uploads=()
|
if [[ ${#commit_arches[*]} -gt 0 ]]; then
|
||||||
|
archrelease "${archreleaseopts[@]}" "${commit_arches[@]/#/$repo-}" || die
|
||||||
# convert to absolute paths so rsync can work with colons (epoch)
|
fi
|
||||||
while read -r -d '' upload; do
|
|
||||||
new_uploads+=("$upload")
|
|
||||||
done < <(realpath -z "${uploads[@]}")
|
|
||||||
|
|
||||||
uploads=("${new_uploads[@]}")
|
|
||||||
unset new_uploads
|
|
||||||
|
|
||||||
if [[ ${#uploads[*]} -gt 0 ]]; then
|
if [[ ${#uploads[*]} -gt 0 ]]; then
|
||||||
|
new_uploads=()
|
||||||
|
|
||||||
|
# convert to absolute paths so rsync can work with colons (epoch)
|
||||||
|
while read -r -d '' upload; do
|
||||||
|
new_uploads+=("$upload")
|
||||||
|
done < <(realpath -z "${uploads[@]}")
|
||||||
|
|
||||||
|
uploads=("${new_uploads[@]}")
|
||||||
|
unset new_uploads
|
||||||
msg 'Uploading all package and signature files'
|
msg 'Uploading all package and signature files'
|
||||||
rsync "${rsyncopts[@]}" "${uploads[@]}" "$server:staging/$repo/" || die
|
rsync "${rsyncopts[@]}" "${uploads[@]}" "$server:staging/$repo/" || die
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue