add nspluginwrapper trigger fix

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1388 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2008-03-04 11:55:36 +00:00
parent f00296ffe6
commit f38c8a4f6c
+24
View File
@@ -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(