commitpkg: upload signatures if available
Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
parent
c955ecf35d
commit
c16e7c25c9
|
@ -129,12 +129,17 @@ for _arch in ${arch[@]}; do
|
||||||
continue 2
|
continue 2
|
||||||
fi
|
fi
|
||||||
uploads+=("$pkgfile")
|
uploads+=("$pkgfile")
|
||||||
|
|
||||||
|
sigfile="${pkgfile}.sig"
|
||||||
|
if [ -f "${sigfile}" ]; then
|
||||||
|
uploads+=("$sigfile")
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
archrelease $repo-${_arch} || abort
|
archrelease $repo-${_arch} || abort
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ ${#uploads[*]} -gt 0 ]]; then
|
if [[ ${#uploads[*]} -gt 0 ]]; then
|
||||||
echo 'uploading all package files'
|
echo 'uploading all package and signature files'
|
||||||
rsync $rsyncopts "${uploads[@]}" "$server:staging/$repo/" || abort
|
rsync $rsyncopts "${uploads[@]}" "$server:staging/$repo/" || abort
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue