debian/0000755000000000000000000000000012255371402007167 5ustar debian/source/0000755000000000000000000000000011421651634010471 5ustar debian/source/format0000644000000000000000000000001411421651634011677 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000005412255370360010250 0ustar #!/usr/bin/make -f %: dh $@ --with=python2 debian/compat0000644000000000000000000000000212255367672010403 0ustar 9 debian/control0000644000000000000000000000140012255371257010575 0ustar Source: python-qrencode Section: python Priority: extra Maintainer: Daniel Kahn Gillmor Build-Depends: debhelper (>= 9), python-all-dev (>= 2.6.6-3~), dh-python, libqrencode-dev Standards-Version: 3.9.5 Homepage: http://pypi.python.org/pypi/qrencode Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/python-qrencode.git Vcs-Git: git://anonscm.debian.org/collab-maint/python-qrencode.git Package: python-qrencode Architecture: any Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}, python-imaging Provides: ${python:Provides} Description: Python bindings for the Qrencode QR Code generator library This package contains modules that allow you to use the Qrencode QR Code generator library in Python programs. debian/patches/0000755000000000000000000000000012255367454010632 5ustar debian/patches/01-fix-segfault-on-long-strings.diff0000644000000000000000000000075612255367444017345 0ustar diff --git a/qr_encode.c b/qr_encode.c index 0550421..6968e2d 100644 --- a/qr_encode.c +++ b/qr_encode.c @@ -14,7 +14,10 @@ static PyObject *qr_encode(PyObject *self, PyObject *args) return NULL; code = QRcode_encodeString(str, version, level, hint, case_sensitive); - + if (!code) { + return Py_BuildValue(""); + } + num_pixels = code->width * code->width; for(i = 0; i < num_pixels; i++) code->data[i] = 255 - (code->data[i] & 0x1) * 0xFF; debian/patches/series0000644000000000000000000000004512255367454012046 0ustar 01-fix-segfault-on-long-strings.diff debian/changelog0000644000000000000000000000156612255371370011055 0ustar python-qrencode (1.01-3) unstable; urgency=low * Avoid segfault on long strings. If creation fails, None is returned instead and an exception is raised. Thanks, gluedig and Arachnid! (Closes: #598031) * convert from python-support to dh_python2 * bump standards-version 3.9.5 (no changes needed) * bump to debhelper 9 * moved Vcs to collab-maint -- Daniel Kahn Gillmor Sat, 21 Dec 2013 14:43:58 -0500 python-qrencode (1.01-2) unstable; urgency=low * added explicit dependency on python-imaging (Closes: #598029) * bumped Standards-Version to 3.9.1 (no changes needed) -- Daniel Kahn Gillmor Sun, 26 Sep 2010 17:04:44 -0400 python-qrencode (1.01-1) unstable; urgency=low * initial release into debian (Closes: #589877) -- Daniel Kahn Gillmor Wed, 21 Jul 2010 16:09:53 -0400 debian/watch0000644000000000000000000000012711421652452010221 0ustar version=3 http://pypi.python.org/packages/source/q/qrencode/qrencode-(\d*.\d*).tar.gz debian/copyright0000644000000000000000000000101611421656063011123 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Name: Python QRencode Maintainer: Nick Johnson Source: http://pypi.python.org/pypi/qrencode Files: * Copyright: 2009-2010, Nick Johnson License: Apache The Apache license can be found in /usr/share/common-licenses/Apache-2.0 Files: debian/* Copyright: 2010, Daniel Kahn Gillmor License: Apache The Apache license can be found in /usr/share/common-licenses/Apache-2.0