--- dulwich-0.1.1+bzr220.orig/dulwich/pack.py +++ dulwich-0.1.1+bzr220/dulwich/pack.py @@ -495,14 +495,11 @@ offset = self._header_size num = len(self) map, _ = simple_mmap(self._file, 0, self._size) - try: - for i in range(num): - (type, obj, total_size) = unpack_object(map, offset) - crc32 = zlib.crc32(map[offset:offset+total_size]) & 0xffffffff - yield offset, type, obj, crc32 - offset += total_size - finally: - map.close() + for i in range(num): + (type, obj, total_size) = unpack_object(map, offset) + crc32 = zlib.crc32(map[offset:offset+total_size]) & 0xffffffff + yield offset, type, obj, crc32 + offset += total_size def iterentries(self, ext_resolve_ref=None): found = {} --- dulwich-0.1.1+bzr220.orig/debian/pycompat +++ dulwich-0.1.1+bzr220/debian/pycompat @@ -0,0 +1 @@ +2 --- dulwich-0.1.1+bzr220.orig/debian/watch +++ dulwich-0.1.1+bzr220/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://samba.org/~jelmer/dulwich/dulwich-(.*).tar.gz --- dulwich-0.1.1+bzr220.orig/debian/rules +++ dulwich-0.1.1+bzr220/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +DEB_PYTHON_SYSTEM=pycentral + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/python-distutils.mk --- dulwich-0.1.1+bzr220.orig/debian/control +++ dulwich-0.1.1+bzr220/debian/control @@ -0,0 +1,23 @@ +Source: dulwich +Section: python +Priority: optional +Maintainer: Jelmer Vernooij +Homepage: http://samba.org/~jelmer/dulwich +Build-Depends: python-central (>= 0.5), cdbs (>= 0.4.43), python-all-dev, debhelper (>= 5.0.37.2) +Standards-Version: 3.8.1 +XS-Python-Version: >= 2.4 +Vcs-Bzr: http://people.samba.org/bzr/jelmer/dulwich/debian + +Package: python-dulwich +Architecture: any +Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends} +XB-Python-Version: ${python:Versions} +Description: Pure-python Git library + Dulwich is a Python implementation of the file formats and protocols + used by the Git version control system. It can currently read from and write + to existing Git repositories and implements the protocol for pushing and + receiving packs from remote servers. + . + All functionality is available in pure Python, but for improved performance + replacements of some modules written in C are also available. This package + includes the high performance versions. --- dulwich-0.1.1+bzr220.orig/debian/changelog +++ dulwich-0.1.1+bzr220/debian/changelog @@ -0,0 +1,40 @@ +dulwich (0.1.1+bzr220-1) unstable; urgency=low + + * Update package description to mention optimized modules. (Closes: #521839) + * New upstream snapshot. + + -- Jelmer Vernooij Mon, 06 Apr 2009 15:48:41 +0200 + +dulwich (0.1.1+bzr214-1) unstable; urgency=low + + * New upstream snapshot. + * Bump standards version. + * Fix long description. (Closes: #521003) + * Switch to Arch: any, since the package now contains compiled + optimized versions of some modules. + + -- Jelmer Vernooij Sun, 29 Mar 2009 16:14:39 +0200 + +dulwich (0.1.1~bzr153-1) unstable; urgency=low + + * New upstream snapshot. + + -- Jelmer Vernooij Sun, 08 Mar 2009 07:02:00 +0100 + +dulwich (0.1.0+bzr138-2) unstable; urgency=low + + * Add watch file. + + -- Jelmer Vernooij Tue, 27 Jan 2009 04:26:55 +0100 + +dulwich (0.1.0+bzr138-1) unstable; urgency=low + + * New upstream snapshot. + + -- Jelmer Vernooij Sat, 24 Jan 2009 22:58:17 +0100 + +dulwich (0.1.0-1) unstable; urgency=low + + * Initial release. (Closes: #512897) + + -- Jelmer Vernooij Thu, 01 Jan 2009 04:15:38 +0100 --- dulwich-0.1.1+bzr220.orig/debian/compat +++ dulwich-0.1.1+bzr220/debian/compat @@ -0,0 +1 @@ +5 --- dulwich-0.1.1+bzr220.orig/debian/copyright +++ dulwich-0.1.1+bzr220/debian/copyright @@ -0,0 +1,21 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=143 +Upstream-Name: dulwich +Debianized-By: Jelmer Vernooij +Debianized-Date: Tue, 13 Jan 2009 16:56:47 +0100 + +It was downloaded from http://launchpad.net/dulwich. + +Files: * +Copyright 2005 Linus Torvalds +Copyright 2007 James Westby +Copyright 2007-2009 Jelmer Vernooij +Copyright 2008 John Carr +License: GPL-2 + On Debian systems the full text of the GNU General Public License version 2 + can be found in the `/usr/share/common-licenses/GPL-2' file. + +Files: debian/* +Copyright 2009 Jelmer Vernooij +License: GPL-2+ + On Debian systems the full text of the GNU General Public License version 2 + can be found in the `/usr/share/common-licenses/GPL-2' file.