Skip archrelease for missing architectures
This commit is contained in:
parent
8ffc2e44ee
commit
8efe61b4e2
18
commitpkg.in
18
commitpkg.in
|
@ -116,10 +116,12 @@ if [ -n "$(svn status -q)" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
declare -a uploads
|
declare -a uploads
|
||||||
|
declare -a commit_arches
|
||||||
|
declare -a skip_arches
|
||||||
|
|
||||||
for _arch in ${arch[@]}; do
|
for _arch in ${arch[@]}; do
|
||||||
if [ -n "$commit_arch" ] && [ "${_arch}" != "$commit_arch" ]; then
|
if [ -n "$commit_arch" ] && [ "${_arch}" != "$commit_arch" ]; then
|
||||||
warning "skipping ${_arch}"
|
skip_arches+=($_arch)
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -133,7 +135,8 @@ for _arch in ${arch[@]}; do
|
||||||
elif [ -f "$pkgdestfile" ]; then
|
elif [ -f "$pkgdestfile" ]; then
|
||||||
pkgfile="$pkgdestfile"
|
pkgfile="$pkgdestfile"
|
||||||
else
|
else
|
||||||
warning "skipping ${_arch}"
|
warning "Could not find ${pkgfile}. Skipping ${_arch}"
|
||||||
|
skip_arches+=($_arch)
|
||||||
continue 2
|
continue 2
|
||||||
fi
|
fi
|
||||||
uploads+=("$pkgfile")
|
uploads+=("$pkgfile")
|
||||||
|
@ -157,11 +160,12 @@ for _arch in ${arch[@]}; do
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ -n $commit_arch ]]; then
|
for _arch in ${arch[@]}; do
|
||||||
archrelease "$repo-$commit_arch" || die
|
if ! in_array $_arch ${skip_arches[@]}; then
|
||||||
else
|
commit_arches+=($_arch)
|
||||||
archrelease "${arch[@]/#/$repo-}" || die
|
fi
|
||||||
fi
|
done
|
||||||
|
archrelease "${commit_arches[@]/#/$repo-}" || die
|
||||||
|
|
||||||
if [[ ${#uploads[*]} -gt 0 ]]; then
|
if [[ ${#uploads[*]} -gt 0 ]]; then
|
||||||
msg 'Uploading all package and signature files'
|
msg 'Uploading all package and signature files'
|
||||||
|
|
Loading…
Reference in New Issue