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
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue