Subject: CVS commit: pkgsrc/net/py-dns
To: None <pkgsrc-changes@NetBSD.org>
From: Andreas Gustafsson <gson@netbsd.org>
List: pkgsrc-changes
Date: 04/09/2005 16:50:03
Module Name:	pkgsrc
Committed By:	gson
Date:		Sat Apr  9 16:50:03 UTC 2005

Modified Files:
	pkgsrc/net/py-dns: Makefile PLIST distinfo

Log Message:
Update py-dns to 1.3.3.

Summary of changes since 1.2.0:

	* dns/rdtypes/ANY/TXT.py (TXT.from_text): The masterfile parser
	incorrectly rejected TXT records where a value was not quoted.

	* dns/message.py: Added make_response(), which creates a skeletal
	response for the specified query.  Added opcode() and set_opcode()
	convenience methods to the Message class.  Added the request_payload
	attribute to the Message class.

	* dns/zone.py (from_xfr): dns.zone.from_xfr() in relativization
	mode incorrectly set zone.origin to the empty name.

	* dns/name.py (Name.to_wire): The 'file' parameter to
	Name.to_wire() is now optional; if omitted, the wire form will
	be returned as the value of the function.

	* dns/message.py (Message.find_rrset): find_rrset() now uses an
	index, vastly improving the from_wire() performance of large
	messages such as zone transfers.

	* dns/query.py: sending queries to a nameserver via IPv6 now
	works.

	* dns/inet.py (af_for_address): Add af_for_address(), which looks
	at a textual-form address and attempts to determine which address
	family it is.

	* dns/query.py: the default for the 'af' parameter of the udp(),
	tcp(), and xfr() functions has been changed from AF_INET to None,
	which causes dns.inet.af_for_address() to be used to determine the
	address family.  If dns.inet.af_for_address() can't figure it out,
	we fall back to AF_INET and hope for the best.

	* dns/rdtypes/ANY/NSEC.py (NSEC.from_text): The NSEC text format
	does not allow specifying types by number, so we shouldn't either.

	* dns/renderer.py: the renderer module didn't import random,
	causing an exception to be raised if a query id wasn't provided
	when a Renderer was created.

	* dns/resolver.py (Resolver.query): the resolver wasn't catching
	dns.exception.Timeout, so a timeout erroneously caused the whole
	resolution to fail instead of just going on to the next server.

	* dns/rdtypes/ANY/LOC.py (LOC.from_text): LOC milliseconds values
	were converted incorrectly if the length of the milliseconds
	string was less than 3.

	* dns/update.py (Update.delete): We erroneously specified a
	"deleting" value of dns.rdatatype.NONE instead of
	dns.rdataclass.NONE when the thing being deleted was either an
	Rdataset instance or an Rdata instance.

	* dns/rdtypes/ANY/SSHFP.py: Added support for the proposed SSHFP
	RR type.

	* dns/rdata.py (from_text): The masterfile reader did not
	accept the unknown RR syntax when used with a known RR type.

	* dns/name.py (from_text): dns.name.from_text() did not raise
	an exception if a backslash escape ended prematurely.

	* dns/zone.py (_MasterReader._rr_line): The masterfile reader
	erroneously treated lines starting with leading whitespace but
	not having any RR definition as an error.  It now treats
	them like a blank line (which is not an error).

	* Added support for new DNSSEC types RRSIG, NSEC, and DNSKEY.

	* dns/query.py (_connect): Windows returns EWOULDBLOCK instead
	of EINPROGRESS when trying to connect a nonblocking socket.

	* dns/rdtypes/ANY/LOC.py (LOC.to_wire): We encoded and decoded LOC
	incorrectly, since we were interpreting the values of altitiude,
	size, hprec, and vprec in meters instead of centimeters.

	* dns/rdtypes/IN/WKS.py (WKS.from_wire): The WKS protocol value is
	encoded with just one octet, not two!

	* dns/resolver.py (Cache.maybe_clean): The cleaner deleted items
	from the dictionary while iterating it, causing a RuntimeError
	to be raised.  Thanks to Mark R. Levinson for the bug report,
	regression test, and fix.


To generate a diff of this commit:
cvs rdiff -r1.8 -r1.9 pkgsrc/net/py-dns/Makefile
cvs rdiff -r1.3 -r1.4 pkgsrc/net/py-dns/PLIST
cvs rdiff -r1.5 -r1.6 pkgsrc/net/py-dns/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.