Update feedparser to 5.1.3.
ok sthen@
This commit is contained in:
parent
b7ebe10139
commit
ded46ae0bc
@ -1,14 +1,13 @@
|
||||
# $OpenBSD: Makefile,v 1.15 2013/08/07 21:32:42 naddy Exp $
|
||||
# $OpenBSD: Makefile,v 1.16 2013/08/24 20:01:34 bcallah Exp $
|
||||
|
||||
COMMENT= RSS and Atom feeds parser written in Python
|
||||
|
||||
V= 5.0.1
|
||||
DISTNAME= feedparser-${V}
|
||||
MODPY_EGG_VERSION= 5.1.3
|
||||
DISTNAME= feedparser-${MODPY_EGG_VERSION}
|
||||
PKGNAME= py-${DISTNAME}
|
||||
REVISION= 2
|
||||
CATEGORIES= textproc
|
||||
|
||||
HOMEPAGE= http://www.feedparser.org/
|
||||
HOMEPAGE= https://code.google.com/p/feedparser/
|
||||
|
||||
MAINTAINER= Romain Gaillegue <romain@biscotte.net>
|
||||
|
||||
@ -18,6 +17,7 @@ PERMIT_PACKAGE_CDROM= Yes
|
||||
MASTER_SITES= https://feedparser.googlecode.com/files/
|
||||
|
||||
MODULES= lang/python
|
||||
MODPY_SETUPTOOLS= Yes
|
||||
|
||||
do-test:
|
||||
cd ${WRKSRC}/feedparser/ && ${MODPY_BIN} feedparsertest.py
|
||||
|
@ -1,5 +1,2 @@
|
||||
MD5 (feedparser-5.0.1.tar.gz) = Df1K1uEFm6jfO27rxg7vWQ==
|
||||
RMD160 (feedparser-5.0.1.tar.gz) = 5dTqffPk7GfDsv+9h5j7V6Hfpz0=
|
||||
SHA1 (feedparser-5.0.1.tar.gz) = EWMdQcl4K5Kv1TO4o6o+oM6qHvE=
|
||||
SHA256 (feedparser-5.0.1.tar.gz) = kyICWKZhryQaVpUXH98JtMs5I04u24vA2O9uUXNQECc=
|
||||
SIZE (feedparser-5.0.1.tar.gz) = 313356
|
||||
SHA256 (feedparser-5.1.3.tar.gz) = rVQ2OeidQ2heLx07bkhxFWLuw743nmlYqSD76vTGO84=
|
||||
SIZE (feedparser-5.1.3.tar.gz) = 283614
|
||||
|
@ -1,30 +0,0 @@
|
||||
$OpenBSD: patch-feedparser_feedparser_py,v 1.1 2012/05/25 12:27:33 jasper Exp $
|
||||
|
||||
Security fix for CVE-2012-2921,
|
||||
feedparser DOCTYPE and ENTITY XML Declaration Denial of Service Vulnerability
|
||||
|
||||
Patch from upstream:
|
||||
https://code.google.com/p/feedparser/source/detail?r=703&path=/trunk/feedparser/feedparser.py
|
||||
|
||||
--- feedparser/feedparser.py.orig Fri May 25 14:24:41 2012
|
||||
+++ feedparser/feedparser.py Fri May 25 14:25:48 2012
|
||||
@@ -3703,9 +3703,6 @@ def parse(url_file_stream_or_string, etag=None, modifi
|
||||
result['bozo'] = 1
|
||||
result['bozo_exception'] = NonXMLContentType(bozo_message)
|
||||
|
||||
- if data is not None:
|
||||
- result['version'], data, entities = _stripDoctype(data)
|
||||
-
|
||||
# ensure that baseuri is an absolute uri using an acceptable URI scheme
|
||||
contentloc = http_headers.get('content-location', http_headers.get('Content-Location', ''))
|
||||
href = result.get('href', '')
|
||||
@@ -3790,6 +3787,9 @@ def parse(url_file_stream_or_string, etag=None, modifi
|
||||
'document declared as %s, but parsed as %s' % \
|
||||
(result['encoding'], proposed_encoding))
|
||||
result['encoding'] = proposed_encoding
|
||||
+
|
||||
+ if data is not None:
|
||||
+ result['version'], data, entities = _stripDoctype(data)
|
||||
|
||||
if not _XML_AVAILABLE:
|
||||
use_strict_parser = 0
|
@ -1,5 +1,8 @@
|
||||
@comment $OpenBSD: PLIST,v 1.3 2011/03/16 22:52:10 jasper Exp $
|
||||
lib/python${MODPY_VERSION}/site-packages/feedparser-5.0.1-py${MODPY_VERSION}.egg-info
|
||||
@comment $OpenBSD: PLIST,v 1.4 2013/08/24 20:01:35 bcallah Exp $
|
||||
lib/python${MODPY_VERSION}/site-packages/feedparser-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
|
||||
lib/python${MODPY_VERSION}/site-packages/feedparser-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
|
||||
lib/python${MODPY_VERSION}/site-packages/feedparser-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/feedparser-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/feedparser-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/feedparser.py
|
||||
lib/python${MODPY_VERSION}/site-packages/feedparser.pyc
|
||||
share/doc/py-feedparser/
|
||||
|
Loading…
Reference in New Issue
Block a user