[Python-modules-commits] r33026 - in packages/citeproc-py/trunk/debian (4 files)

danstender-guest at users.alioth.debian.org danstender-guest at users.alioth.debian.org
Fri Jun 19 08:17:11 UTC 2015


    Date: Friday, June 19, 2015 @ 08:17:08
  Author: danstender-guest
Revision: 33026

added disable-style-validation.diff

Added:
  packages/citeproc-py/trunk/debian/patches/
  packages/citeproc-py/trunk/debian/patches/disable-style-validation.diff
  packages/citeproc-py/trunk/debian/patches/series
Modified:
  packages/citeproc-py/trunk/debian/changelog

Modified: packages/citeproc-py/trunk/debian/changelog
===================================================================
--- packages/citeproc-py/trunk/debian/changelog	2015-06-18 20:30:49 UTC (rev 33025)
+++ packages/citeproc-py/trunk/debian/changelog	2015-06-19 08:17:08 UTC (rev 33026)
@@ -2,4 +2,4 @@
 
   * Initial release (Closes: #769159).
 
- -- Daniel Stender <debian at danielstender.com>  Wed, 17 Jun 2015 22:21:51 +0200
+ -- Daniel Stender <debian at danielstender.com>  Fri, 19 Jun 2015 10:12:05 +0200

Added: packages/citeproc-py/trunk/debian/patches/disable-style-validation.diff
===================================================================
--- packages/citeproc-py/trunk/debian/patches/disable-style-validation.diff	                        (rev 0)
+++ packages/citeproc-py/trunk/debian/patches/disable-style-validation.diff	2015-06-19 08:17:08 UTC (rev 33026)
@@ -0,0 +1,37 @@
+Description: disable CSL style validation by default because the RELAX NG
+ schemes can't be shipped through Debian due to DFSG restrictions. The CSL
+ developers are about to put them under the MIT license, the patch then could
+ be dropped.
+Author: Daniel Stender <debian at danielstender.com>
+Forwarded: not-needed
+Last-Update: 2015-06-18
+
+--- a/citeproc/frontend.py
++++ b/citeproc/frontend.py
+@@ -15,7 +15,7 @@
+ 
+ 
+ class CitationStylesXML(object):
+-    def __init__(self, f, validate=True):
++    def __init__(self, f, validate=False):
+         lookup = etree.ElementNamespaceClassLookup()
+         namespace = lookup.get_namespace('http://purl.org/net/xbiblio/csl')
+         namespace[None] = CitationStylesElement
+@@ -37,7 +37,7 @@
+ 
+ 
+ class CitationStylesLocale(CitationStylesXML):
+-    def __init__(self, locale, validate=True):
++    def __init__(self, locale, validate=False):
+         locale_path = os.path.join(LOCALES_PATH, 'locales-{}.xml'.format(locale))
+         try:
+             super(CitationStylesLocale, self).__init__(locale_path,
+@@ -47,7 +47,7 @@
+ 
+ 
+ class CitationStylesStyle(CitationStylesXML):
+-    def __init__(self, style, locale=None, validate=True):
++    def __init__(self, style, locale=None, validate=False):
+         try:
+             if not os.path.exists(style):
+                 style = os.path.join(STYLES_PATH, '{}.csl'.format(style))

Added: packages/citeproc-py/trunk/debian/patches/series
===================================================================
--- packages/citeproc-py/trunk/debian/patches/series	                        (rev 0)
+++ packages/citeproc-py/trunk/debian/patches/series	2015-06-19 08:17:08 UTC (rev 33026)
@@ -0,0 +1 @@
+disable-style-validation.diff




More information about the Python-modules-commits mailing list