commit:     3cd5824f4f1d0414b5a3b091c845353072fd1be1
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 14 22:13:40 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Feb 14 22:20:26 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cd5824f

media-video/vlc: Fix pkg_postrm

Thanks-to: Arfrever
Package-Manager: Portage-2.3.24, Repoman-2.3.6

 media-video/vlc/vlc-2.2.8-r1.ebuild | 4 ++--
 media-video/vlc/vlc-3.0.0-r1.ebuild | 4 ++--
 media-video/vlc/vlc-3.0.9999.ebuild | 4 ++--
 media-video/vlc/vlc-9999.ebuild     | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/media-video/vlc/vlc-2.2.8-r1.ebuild 
b/media-video/vlc/vlc-2.2.8-r1.ebuild
index e5ea1722312..cf77af60167 100644
--- a/media-video/vlc/vlc-2.2.8-r1.ebuild
+++ b/media-video/vlc/vlc-2.2.8-r1.ebuild
@@ -470,8 +470,8 @@ pkg_postinst() {
 }
 
 pkg_postrm() {
-       if [[ -e /usr/lib64/vlc/plugins/plugins.dat ]]; then
-               rm /usr/lib64/vlc/plugins/plugins.dat || die "Failed to rm 
plugins.dat"
+       if [[ -e /usr/$(get_libdir)/vlc/plugins/plugins.dat ]]; then
+               rm /usr/$(get_libdir)/vlc/plugins/plugins.dat || die "Failed to 
rm plugins.dat"
        fi
 
        gnome2_icon_cache_update

diff --git a/media-video/vlc/vlc-3.0.0-r1.ebuild 
b/media-video/vlc/vlc-3.0.0-r1.ebuild
index 2690e5572c6..ea2550b2cc9 100644
--- a/media-video/vlc/vlc-3.0.0-r1.ebuild
+++ b/media-video/vlc/vlc-3.0.0-r1.ebuild
@@ -489,8 +489,8 @@ pkg_postinst() {
 }
 
 pkg_postrm() {
-       if [[ -e /usr/lib64/vlc/plugins/plugins.dat ]]; then
-               rm /usr/lib64/vlc/plugins/plugins.dat || die "Failed to rm 
plugins.dat"
+       if [[ -e /usr/$(get_libdir)/vlc/plugins/plugins.dat ]]; then
+               rm /usr/$(get_libdir)/vlc/plugins/plugins.dat || die "Failed to 
rm plugins.dat"
        fi
 
        gnome2_icon_cache_update

diff --git a/media-video/vlc/vlc-3.0.9999.ebuild 
b/media-video/vlc/vlc-3.0.9999.ebuild
index 2690e5572c6..ea2550b2cc9 100644
--- a/media-video/vlc/vlc-3.0.9999.ebuild
+++ b/media-video/vlc/vlc-3.0.9999.ebuild
@@ -489,8 +489,8 @@ pkg_postinst() {
 }
 
 pkg_postrm() {
-       if [[ -e /usr/lib64/vlc/plugins/plugins.dat ]]; then
-               rm /usr/lib64/vlc/plugins/plugins.dat || die "Failed to rm 
plugins.dat"
+       if [[ -e /usr/$(get_libdir)/vlc/plugins/plugins.dat ]]; then
+               rm /usr/$(get_libdir)/vlc/plugins/plugins.dat || die "Failed to 
rm plugins.dat"
        fi
 
        gnome2_icon_cache_update

diff --git a/media-video/vlc/vlc-9999.ebuild b/media-video/vlc/vlc-9999.ebuild
index 20e11569243..a6cc30a0528 100644
--- a/media-video/vlc/vlc-9999.ebuild
+++ b/media-video/vlc/vlc-9999.ebuild
@@ -489,8 +489,8 @@ pkg_postinst() {
 }
 
 pkg_postrm() {
-       if [[ -e /usr/lib64/vlc/plugins/plugins.dat ]]; then
-               rm /usr/lib64/vlc/plugins/plugins.dat || die "Failed to rm 
plugins.dat"
+       if [[ -e /usr/$(get_libdir)/vlc/plugins/plugins.dat ]]; then
+               rm /usr/$(get_libdir)/vlc/plugins/plugins.dat || die "Failed to 
rm plugins.dat"
        fi
 
        gnome2_icon_cache_update

Reply via email to