mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
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:
3 files changed
+3
-3
No files matched your search
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user