1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 00:08:50 -05:00

makepkg: place signature symlink in build dir

Be consistent in package and signature placements when using
PKGDEST.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2010-03-31 15:00:33 +10:00 committed by Dan McGee
parent 82e22596d8
commit 2f2f53ddc9

View File

@ -1092,16 +1092,17 @@ create_package() {
exit 1 # TODO: error code exit 1 # TODO: error code
fi fi
create_signature "$pkg_file"
if (( ! ret )) && [[ ! "$PKGDEST" -ef "${startdir}" ]]; then if (( ! ret )) && [[ ! "$PKGDEST" -ef "${startdir}" ]]; then
ln -sf "${pkg_file}" "${pkg_file/$PKGDEST/$startdir}" ln -sf "${pkg_file}" "${pkg_file/$PKGDEST/$startdir}"
ret=$? ret=$?
[[ -f $pkg_file.sig ]] && ln -sf "$pkg_file.sig" "${pkg_file/$PKGDEST/$startdir}.sig"
fi fi
if (( ret )); then if (( ret )); then
warning "$(gettext "Failed to create symlink to package file.")" warning "$(gettext "Failed to create symlink to package file.")"
fi fi
create_signature "$pkg_file"
} }
create_signature() { create_signature() {