[arch-dev-public] [PATCH 2/4] Copy packages signatures to repo if available
Dan McGee
dpmcgee at gmail.com
Wed Mar 16 21:10:35 EDT 2011
On Sat, Mar 12, 2011 at 9:27 PM, Allan McRae <allan at archlinux.org> wrote:
> Signed-off-by: Allan McRae <allan at archlinux.org>
Signed-off-by: Dan McGee <dan at archlinux.org>
But once again this seems to have changes my checkout doesn't have
(get_pkgpool_for_host).
> ---
> db-update | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/db-update b/db-update
> index 51e3cc2..754f89a 100755
> --- a/db-update
> +++ b/db-update
> @@ -58,6 +58,14 @@ for repo in ${repos[@]}; do
> mv "${pkg}" "$FTP_BASE/$(get_pkgpool_for_host)"
> fi
> ln -s "../../../$(get_pkgpool_for_host)/${pkgfile}" "$FTP_BASE/$repo/os/${pkgarch}"
> +
> + if [ -f "${pkg}.sig" ]; then
> + mv "${pkg}.sig" "$FTP_BASE/$(get_pkgpool_for_host)"
> + fi
> + if [ -f "$FTP_BASE/$(get_pkgpool_for_host)/${pkgfile}.sig" ]; then
> + ln -s "../../../$(get_pkgpool_for_host)/${pkgfile}.sig" "$FTP_BASE/$repo/os/${pkgarch}"
> + fi
> +
> add_pkgs[${#add_pkgs[*]}]=${pkgfile}
> done
> pushd "$FTP_BASE/$repo/os/${pkgarch}" >/dev/null
> --
> 1.7.4.1
>
>
More information about the arch-dev-public
mailing list