makepkg: do not create symlinks in build directory
Setting PKGDEST and friends enables us to keep all built packages in a single location. Symlinking these files into the build directory creates unnecessary clutter and requires clean-up in multiple places when removing old version. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
4f2fea240d
commit
c0a5884b18
1 changed files with 0 additions and 28 deletions
|
@ -771,20 +771,6 @@ create_package() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
create_signature "$pkg_file"
|
create_signature "$pkg_file"
|
||||||
|
|
||||||
if (( ! ret )) && [[ ! "$PKGDEST" -ef "${startdir}" ]]; then
|
|
||||||
rm -f "${pkg_file/$PKGDEST/$startdir}"
|
|
||||||
ln -s "${pkg_file}" "${pkg_file/$PKGDEST/$startdir}"
|
|
||||||
ret=$?
|
|
||||||
if [[ -f $pkg_file.sig ]]; then
|
|
||||||
rm -f "${pkg_file/$PKGDEST/$startdir}.sig"
|
|
||||||
ln -s "$pkg_file.sig" "${pkg_file/$PKGDEST/$startdir}.sig"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if (( ret )); then
|
|
||||||
warning "$(gettext "Failed to create symlink to package file.")"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
create_debug_package() {
|
create_debug_package() {
|
||||||
|
@ -884,20 +870,6 @@ create_srcpackage() {
|
||||||
|
|
||||||
create_signature "$pkg_file"
|
create_signature "$pkg_file"
|
||||||
|
|
||||||
if [[ ! "$SRCPKGDEST" -ef "${startdir}" ]]; then
|
|
||||||
rm -f "${pkg_file/$SRCPKGDEST/$startdir}"
|
|
||||||
ln -s "${pkg_file}" "${pkg_file/$SRCPKGDEST/$startdir}"
|
|
||||||
ret=$?
|
|
||||||
if [[ -f $pkg_file.sig ]]; then
|
|
||||||
rm -f "${pkg_file/$SRCPKGDEST/$startdir}.sig"
|
|
||||||
ln -s "$pkg_file.sig" "${pkg_file/$SRCPKGDEST/$startdir}.sig"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if (( ret )); then
|
|
||||||
warning "$(gettext "Failed to create symlink to source package file.")"
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd_safe "${startdir}"
|
cd_safe "${startdir}"
|
||||||
rm -rf "${srclinks}"
|
rm -rf "${srclinks}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue