mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58: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:
parent
82e22596d8
commit
2f2f53ddc9
@ -1092,16 +1092,17 @@ create_package() {
|
||||
exit 1 # TODO: error code
|
||||
fi
|
||||
|
||||
create_signature "$pkg_file"
|
||||
|
||||
if (( ! ret )) && [[ ! "$PKGDEST" -ef "${startdir}" ]]; then
|
||||
ln -sf "${pkg_file}" "${pkg_file/$PKGDEST/$startdir}"
|
||||
ret=$?
|
||||
[[ -f $pkg_file.sig ]] && ln -sf "$pkg_file.sig" "${pkg_file/$PKGDEST/$startdir}.sig"
|
||||
fi
|
||||
|
||||
if (( ret )); then
|
||||
warning "$(gettext "Failed to create symlink to package file.")"
|
||||
fi
|
||||
|
||||
create_signature "$pkg_file"
|
||||
}
|
||||
|
||||
create_signature() {
|
||||
|
Loading…
Reference in New Issue
Block a user