Package: release.debian.org Severity: normal User: release.debian....@packages.debian.org Usertags: unblock
Please unblock package pyclamd It fixes an RC bug #780337 diff -Nru pyclamd-0.3.9/debian/changelog pyclamd-0.3.9/debian/changelog --- pyclamd-0.3.9/debian/changelog 2014-07-14 02:50:08.000000000 +0600 +++ pyclamd-0.3.9/debian/changelog 2015-03-12 23:48:50.000000000 +0500 @@ -1,3 +1,10 @@ +pyclamd (0.3.9-2) unstable; urgency=medium + + * Team upload. + * Fix import on Python 3 (Closes: #780337) + + -- Andrey Rahmatullin <w...@debian.org> Thu, 12 Mar 2015 23:47:33 +0500 + pyclamd (0.3.9-1) unstable; urgency=medium * New upstream release diff -Nru pyclamd-0.3.9/debian/patches/fix-python3-import.patch pyclamd-0.3.9/debian/patches/fix-python3-import.patch --- pyclamd-0.3.9/debian/patches/fix-python3-import.patch 1970-01-01 05:00:00.000000000 +0500 +++ pyclamd-0.3.9/debian/patches/fix-python3-import.patch 2015-03-12 23:51:51.000000000 +0500 @@ -0,0 +1,22 @@ +Description: Fix importing pyclamd on Python 3 +Origin: upstream +Bug-Debian: https://bugs.debian.org/780337 +Applied-Upstream: 0.3.10 +Last-Update: 2015-03-12 + +diff -u pyclamd-0.3.9.orig/__init__.py pyclamd-0.3.9/__init__.py +--- pyclamd-0.3.9.orig/__init__.py 2012-11-24 00:52:09.000000000 +0600 ++++ pyclamd-0.3.9/__init__.py 2015-03-12 23:43:24.344370092 +0500 +@@ -1,5 +1,10 @@ + #!/usr/bin/env python + # -*- coding: utf-8 -*- + +-from pyclamd import __version__ +-from pyclamd import * ++import sys ++if sys.version_info[0] <= 2: ++ from pyclamd import __version__ ++ from pyclamd import * ++elif sys.version_info[0] >= 3: ++ from .pyclamd import __version__ ++ from .pyclamd import * diff -Nru pyclamd-0.3.9/debian/patches/series pyclamd-0.3.9/debian/patches/series --- pyclamd-0.3.9/debian/patches/series 2014-07-14 02:31:51.000000000 +0600 +++ pyclamd-0.3.9/debian/patches/series 2015-03-12 23:48:50.000000000 +0500 @@ -1 +1,2 @@ examples-print-fix.patch +fix-python3-import.patch unblock pyclamd/0.3.9-2 -- System Information: Debian Release: 8.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.17-1-amd64 (SMP w/4 CPU cores) Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) -- To UNSUBSCRIBE, email to debian-release-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20150312193714.13310.92817.report...@belkar.wrar.name