From f38c8a4f6cceee9804d3a9bf8c9131f83703f43d Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Tue, 4 Mar 2008 11:55:36 +0000 Subject: [PATCH] add nspluginwrapper trigger fix git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1388 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/libraries/entropy.py b/libraries/entropy.py index f59f39481..c8b12815a 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -5204,6 +5204,9 @@ class TriggerInterface: if self.pkgdata['category']+"/"+self.pkgdata['name'] == "sys-devel/binutils": functions.add("binutilsswitch") + if (self.pkgdata['category']+"/"+self.pkgdata['name'] == "net-www/netscape-flash") and (etpSys['arch'] == "amd64"): + functions.add("nspluginwrapper_fix_flash") + # triggers that are not needed when gentoo-compat is enabled if not self.gentoo_compat: @@ -5446,6 +5449,27 @@ class TriggerInterface: os.remove(triggerfile) return my_ext_status + def trigger_nspluginwrapper_fix_flash(self): + # check if nspluginwrapper is installed + if os.access("/usr/bin/nspluginwrapper",os.X_OK): + self.Entropy.updateProgress( + brown(" Regenerating nspluginwrapper flash plugin"), + importance = 0, + header = red(" ##") + ) + quietstring = '' + if etpUi['quiet']: quietstring = " &>/dev/null" + cmds = [ + "nspluginwrapper -r /usr/lib64/nsbrowser/plugins/npwrapper.libflashplayer.so"+quietstring, + "nspluginwrapper -i /usr/lib32/nsbrowser/plugins/libflashplayer.so"+quietstring + ] + if not etpConst['systemroot']: + for cmd in cmds: + os.system(cmd) + else: + for cmd in cmds: + os.system('echo "'+cmd+'" | chroot '+etpConst['systemroot']+quietstring) + def trigger_purgecache(self): self.Entropy.equoLog.log(ETP_LOGPRI_INFO,ETP_LOGLEVEL_NORMAL,"[POST] Purging Equo cache...") self.Entropy.updateProgress(