[Python-modules-commits] r7987 - in packages/sphinx/trunk/debian/patches (1 file)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Tue Mar 24 22:12:29 UTC 2009


    Date: Tuesday, March 24, 2009 @ 22:12:28
  Author: piotr
Revision: 7987

update the patch to 0.6 release

Modified:
  packages/sphinx/trunk/debian/patches/move_static_files_outside_site-packages.patch

Modified: packages/sphinx/trunk/debian/patches/move_static_files_outside_site-packages.patch
===================================================================
--- packages/sphinx/trunk/debian/patches/move_static_files_outside_site-packages.patch	2009-03-24 22:00:29 UTC (rev 7986)
+++ packages/sphinx/trunk/debian/patches/move_static_files_outside_site-packages.patch	2009-03-24 22:12:28 UTC (rev 7987)
@@ -1,9 +1,22 @@
 # move static files outside site-packages so that they can be shared between
 # different Python versions
-Index: sphinx-0.6~b1/sphinx/builders/changes.py
+Index: sphinx-0.6/sphinx/theming.py
 ===================================================================
---- sphinx-0.6~b1.orig/sphinx/builders/changes.py
-+++ sphinx-0.6~b1/sphinx/builders/changes.py
+--- sphinx-0.6.orig/sphinx/theming.py
++++ sphinx-0.6/sphinx/theming.py
+@@ -33,7 +33,7 @@ class Theme(object):
+     def init_themes(cls, builder):
+         """Search all theme paths for available themes."""
+         cls.themepath = list(builder.config.html_theme_path)
+-        cls.themepath.append(path.join(package_dir, 'themes'))
++        cls.themepath.append('/usr/share/sphinx/themes')
+ 
+         for themedir in cls.themepath[::-1]:
+             themedir = path.join(builder.confdir, themedir)
+Index: sphinx-0.6/sphinx/builders/changes.py
+===================================================================
+--- sphinx-0.6.orig/sphinx/builders/changes.py
++++ sphinx-0.6/sphinx/builders/changes.py
 @@ -137,12 +137,10 @@ class ChangesBuilder(Builder):
                  f.close()
          themectx = dict(('theme_' + key, val) for (key, val) in
@@ -19,10 +32,10 @@
                            path.join(self.outdir, 'basic.css'), self)
  
      def hl(self, text, version):
-Index: sphinx-0.6~b1/sphinx/builders/latex.py
+Index: sphinx-0.6/sphinx/builders/latex.py
 ===================================================================
---- sphinx-0.6~b1.orig/sphinx/builders/latex.py
-+++ sphinx-0.6~b1/sphinx/builders/latex.py
+--- sphinx-0.6.orig/sphinx/builders/latex.py
++++ sphinx-0.6/sphinx/builders/latex.py
 @@ -195,7 +195,7 @@ class LaTeXBuilder(Builder):
                              path.join(self.outdir, logobase))
  
@@ -32,10 +45,10 @@
          for filename in os.listdir(staticdirname):
              if not filename.startswith('.'):
                  shutil.copyfile(path.join(staticdirname, filename),
-Index: sphinx-0.6~b1/sphinx/builders/pdf.py
+Index: sphinx-0.6/sphinx/builders/pdf.py
 ===================================================================
---- sphinx-0.6~b1.orig/sphinx/builders/pdf.py
-+++ sphinx-0.6~b1/sphinx/builders/pdf.py
+--- sphinx-0.6.orig/sphinx/builders/pdf.py
++++ sphinx-0.6/sphinx/builders/pdf.py
 @@ -185,7 +185,7 @@ class PdfBuilder(Builder):
                              path.join(self.outdir, logobase))
  




More information about the Python-modules-commits mailing list