dev-lang/swift: ignore rm failure in postrm

The postrm() phase attempts to remove symlinks to installed Swift
versions; the `rm` invocation was missing `|| die` or `-f` to clearly
indicate what should happen on failure. (In this case, it's okay to
ignore the error and move on.)

Signed-off-by: Itai Ferber <itai@itaiferber.net>
This commit is contained in:
Itai Ferber committed 2026-04-22 10:12:06 -04:00
1 parent aaa66e0be0
commit 2de6608e81
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -335,6 +335,6 @@ pkg_postrm() {
local major_ver="$(ver_cut 1-2)"
local link="${EROOT}/usr/$(get_libdir)/${PN}-${major_ver}"
if [[ -L "${link}" && "${PV}" != "${major_ver}" ]]; then
rm "${link}"
rm -f "${link}"
fi
}
+1 -1
View File
@@ -337,6 +337,6 @@ pkg_postrm() {
local major_ver="$(ver_cut 1-2)"
local link="${EROOT}/usr/$(get_libdir)/${PN}-${major_ver}"
if [[ -L "${link}" && "${PV}" != "${major_ver}" ]]; then
rm "${link}"
rm -f "${link}"
fi
}
+1 -1
View File
@@ -337,6 +337,6 @@ pkg_postrm() {
local major_ver="$(ver_cut 1-2)"
local link="${EROOT}/usr/$(get_libdir)/${PN}-${major_ver}"
if [[ -L "${link}" && "${PV}" != "${major_ver}" ]]; then
rm "${link}"
rm -f "${link}"
fi
}