packages: griffith/griffith-plugin.patch - updated for 0.10 (taken from DEV...

lisu lisu at pld-linux.org
Tue Aug 4 09:33:14 CEST 2009


Author: lisu                         Date: Tue Aug  4 07:33:14 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- updated for 0.10 (taken from DEVEL branch)

---- Files affected:
packages/griffith:
   griffith-plugin.patch (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/griffith/griffith-plugin.patch
diff -u packages/griffith/griffith-plugin.patch:1.2 packages/griffith/griffith-plugin.patch:1.3
--- packages/griffith/griffith-plugin.patch:1.2	Tue Feb 20 21:40:27 2007
+++ packages/griffith/griffith-plugin.patch	Tue Aug  4 09:33:09 2009
@@ -1,33 +1,31 @@
-diff -Nur griffith-0.9.org/lib/gutils.py griffith-0.9/lib/gutils.py
---- griffith-0.9.org/lib/gutils.py	2007-02-20 21:27:11.000000000 +0100
-+++ griffith-0.9/lib/gutils.py	2007-02-20 21:29:27.000000000 +0100
-@@ -299,7 +299,7 @@
- def read_plugins(prefix,directory):
- 	"""returns available plugins"""
- 	import glob
--	return glob.glob("%s/%s*.py" % (directory,prefix) )
-+	return glob.glob("%s/%s*.pyc" % (directory,prefix) )
+--- griffith-0.10-rc1/lib/gutils.py~	2009-06-08 23:40:22.000000000 +0200
++++ griffith-0.10-rc1/lib/gutils.py	2009-07-20 10:20:55.000000000 +0200
+@@ -334,7 +334,7 @@
+     """returns available plugins"""
+ 
+     import glob
+-    return glob.glob("%s/%s*.py" % (directory,prefix) )
++    return glob.glob("%s/%s*.pyc" % (directory,prefix) )
  
  def findKey(val, dict):
- 	for key, value in dict.items():
-diff -Nur griffith-0.9.org/lib/initialize.py griffith-0.9/lib/initialize.py
---- griffith-0.9.org/lib/initialize.py	2007-02-20 21:27:11.000000000 +0100
-+++ griffith-0.9/lib/initialize.py	2007-02-20 21:29:50.000000000 +0100
-@@ -313,7 +313,7 @@
- 	self.d_plugin = 0
- 	mcounter = 0
- 	for p in self.plugins:
--		plugin_module = os.path.basename(p).replace('.py','')
-+		plugin_module = os.path.basename(p).replace('.pyc','')
- 		plugin_name = plugin_module.replace('PluginMovie','')
- 		self.widgets['add']['source'].append_text(plugin_name)
- 		self.widgets['preferences']['default_plugin'].append_text(plugin_name)
-@@ -332,7 +332,7 @@
- 		self.locations['export_plugins'])
- 	plugins.sort()
- 	for p in plugins:
--		plugin_module = os.path.basename(p).replace('.py', '')
-+		plugin_module = os.path.basename(p).replace('.pyc', '')
- 		plugin_name = plugin_module.replace('PluginExport', '')
- 		menu_items = gtk.MenuItem(plugin_name)
- 		self.widgets['menu']['export'].append(menu_items)
+     for key, value in dict.items():
+--- griffith-0.10-rc1/lib/initialize.py~	2009-07-04 15:21:31.000000000 +0200
++++ griffith-0.10-rc1/lib/initialize.py	2009-07-20 10:21:55.000000000 +0200
+@@ -392,7 +392,7 @@
+     mcounter = 0
+     default_plugin = self.config.get('default_movie_plugin')
+     for p in self.plugins:
+-        plugin_module = os.path.basename(p).replace('.py','')
++        plugin_module = os.path.basename(p).replace('.pyc','')
+         plugin_name = plugin_module.replace('PluginMovie','')
+         self.widgets['add']['source'].append_text(plugin_name)
+         self.widgets['preferences']['default_plugin'].append_text(plugin_name)
+@@ -410,7 +410,7 @@
+         self.locations['export_plugins'])
+     plugins.sort()
+     for p in plugins:
+-        plugin_module = os.path.basename(p).replace('.py', '')
++        plugin_module = os.path.basename(p).replace('.pyc', '')
+         plugin_name = plugin_module.replace('PluginExport', '')
+         menu_items = gtk.MenuItem(plugin_name)
+         self.widgets['menu']['export'].append(menu_items)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/griffith/griffith-plugin.patch?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list