diff options
author | Ali Polatel <hawking@gentoo.org> | 2007-10-01 17:16:23 +0000 |
---|---|---|
committer | Ali Polatel <hawking@gentoo.org> | 2007-10-01 17:16:23 +0000 |
commit | 7afd0e7a91e7061124101fd2e2ccc3f300be1e39 (patch) | |
tree | 74d54178b4f810e75a976ccffa9d195b40218c14 /dev-python/formencode | |
parent | stable x86, bug 194413 (diff) | |
download | gentoo-2-7afd0e7a91e7061124101fd2e2ccc3f300be1e39.tar.gz gentoo-2-7afd0e7a91e7061124101fd2e2ccc3f300be1e39.tar.bz2 gentoo-2-7afd0e7a91e7061124101fd2e2ccc3f300be1e39.zip |
revbump. fixed domain verification, bug 194093 thanks to Jacob Smullyan
(Portage version: 2.1.3.11)
Diffstat (limited to 'dev-python/formencode')
4 files changed, 68 insertions, 1 deletions
diff --git a/dev-python/formencode/ChangeLog b/dev-python/formencode/ChangeLog index 770ccb93102e..d11eb96d6a61 100644 --- a/dev-python/formencode/ChangeLog +++ b/dev-python/formencode/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/formencode # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/formencode/ChangeLog,v 1.12 2007/07/04 17:50:20 pythonhead Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/formencode/ChangeLog,v 1.13 2007/10/01 17:16:22 hawking Exp $ + +*formencode-0.7.1-r2 (01 Oct 2007) + + 01 Oct 2007; Ali Polatel <hawking@gentoo.org> + +files/formencode-0.7.1-verify_domain.patch, +formencode-0.7.1-r2.ebuild: + revbump. fixed domain verification, bug 194093 thanks to Jacob Smullyan *formencode-0.7.1-r1 (04 Jul 2007) *formencode-0.7-r1 (04 Jul 2007) diff --git a/dev-python/formencode/files/digest-formencode-0.7.1-r2 b/dev-python/formencode/files/digest-formencode-0.7.1-r2 new file mode 100644 index 000000000000..cc256dcf0bfe --- /dev/null +++ b/dev-python/formencode/files/digest-formencode-0.7.1-r2 @@ -0,0 +1,3 @@ +MD5 86ee82f7e808d2b7973b13a96bb740cc FormEncode-0.7.1.tar.gz 137539 +RMD160 841251a4174070e1ad7c6be8dd75e5beebf92166 FormEncode-0.7.1.tar.gz 137539 +SHA256 5ac89b638851882de78b7bbebcff994fb807181367da990df1d8095bd6f350f9 FormEncode-0.7.1.tar.gz 137539 diff --git a/dev-python/formencode/files/formencode-0.7.1-verify_domain.patch b/dev-python/formencode/files/formencode-0.7.1-verify_domain.patch new file mode 100644 index 000000000000..08e2f36a34a7 --- /dev/null +++ b/dev-python/formencode/files/formencode-0.7.1-verify_domain.patch @@ -0,0 +1,15 @@ +--- formencode/validators.py 2007-04-01 00:06:43.000000000 +0300 ++++ formencode/validators.py 2007-10-01 19:30:53.000000000 +0300 +@@ -1230,8 +1230,10 @@ + if self.resolve_domain: + assert have_dns, "pyDNS should be available" + try: +- a=DNS.DnsRequest(domain).req().answers +- dnsdomains=[x['data'] for x in a if x['typename'] in ('A', 'MX')] ++ a=DNS.DnsRequest(domain, qtype='mx').req().answers ++ if not a: ++ a=DNS.DnsRequest(domain, qtype='a').req().answers ++ dnsdomains=[x['data'] for x in a] + except (socket.error, DNS.DNSError), e: + raise Invalid( + self.message('socketError', state, error=e), diff --git a/dev-python/formencode/formencode-0.7.1-r2.ebuild b/dev-python/formencode/formencode-0.7.1-r2.ebuild new file mode 100644 index 000000000000..a4846fcc9c92 --- /dev/null +++ b/dev-python/formencode/formencode-0.7.1-r2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/formencode/formencode-0.7.1-r2.ebuild,v 1.1 2007/10/01 17:16:22 hawking Exp $ + +# TODO: Add pudge support via "doc" flag +# currently broken with 0.6 and 0.7 releases + +NEED_PYTHON=2.3 + +inherit distutils eutils + +MY_PN="FormEncode" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="HTML form validation, generation, and conversion package" +HOMEPAGE="http://formencode.org" +SRC_URI="http://cheeseshop.python.org/packages/source/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="PSF-2.4" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" +IUSE="" + +RDEPEND="dev-python/setuptools" + +PYTHON_MODNAME=$MY_PN +S="${WORKDIR}/${MY_P}" + +src_unpack() { + distutils_src_unpack + + # fix domain verification. bug 194093 + epatch "${FILESDIR}/${P}-verify_domain.patch" +} + +src_install() { + distutils_src_install + + dodoc docs/*.txt + + insinto /usr/share/doc/${PF} + doins -r examples +} |