Your message dated Fri, 05 Nov 2010 17:02:13 +0000
with message-id <[email protected]>
and subject line Bug#485701: fixed in spambayes 1.0.4-6
has caused the Debian Bug report #485701,
regarding spambayes: Use patch for __future__ changes, transition to dpatch for 
unpatch
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
485701: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=485701
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: spambayes
Version: 1.0.4-5
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu intrepid ubuntu-patch

Hi,

The Ubuntu changes to spambayes, in Ubuntu version 1.0.4-4ubuntu1,
achieve the same changes that have been achieved in 1.0.4-5 in a more
maintainable way, specifically keeping the changes in the debian/
directory, thereby enhancing the maintainability of the package.

We've also simplified the unpatch target in debian/rules.

In Ubuntu, we've applied the attached patch to achieve the following:

  * Merge from debian unstable, remaining changes:
    - Add debian/patches/fix_import_future.dpatch to fix all instances
      of from future import not being at the start of the file.
    - Simplify debian/rules so unpatch actually works.
    - Remove dh_python from debian/rules (not needed)
    - Add build-dep on dpatch

We thought you might be interested in doing the same.

-- System Information:
Debian Release: lenny/sid
  APT prefers hardy-updates
  APT policy: (500, 'hardy-updates'), (500, 'hardy-security'), (500, 
'hardy-backports'), (500, 'hardy')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-17-generic (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u spambayes-1.0.4/debian/rules spambayes-1.0.4/debian/rules
--- spambayes-1.0.4/debian/rules
+++ spambayes-1.0.4/debian/rules
@@ -5,7 +5,7 @@
 
 SB=debian/spambayes
 
-debian_patches=spambayes
+debian_patches=spambayes fix_import_future
 
 build: build-stamp
 build-stamp: patched-stamp
@@ -16,7 +16,7 @@
        cp CHANGELOG.txt changelog
        touch build-stamp
 
-clean: reverse-patches
+clean: unpatch
        dh_testdir
        rm -f build-stamp install-stamp
        rm -rf build $(SB)
@@ -63,23 +63,10 @@
 patch_dir       = debian/patches
 
 apply-patches: patched-stamp
-reverse-patches:
-       @for stamp in none patched-*; do \
-               case "$$stamp" in none|patched-stamp|patched-\*) continue; 
esac; \
-               patch=`echo $$stamp | sed -e 's/patched-//'`; \
-               echo "trying to revert patch $$patch ..."; \
-               if [ -x $(patch_dir)/$$patch.dpatch ]; then true; else \
-                       chmod +x $(patch_dir)/$$patch.dpatch; fi; \
-               if $(patch_dir)/$$patch.dpatch -unpatch; then \
-                       echo "reverted $$patch patch."; \
-                       rm -f $$stamp; \
-               else \
-                       echo "error in reverting $$patch patch."; \
-                       exit 1; \
-               fi; \
-       done
-       @echo "Removing patched-stamp"
-       @rm -f patched-stamp
+
+unpatch:
+       dpatch deapply-all
+       rm -rf patch-stamp debian/patched       
 
 patched-%: $(patch_dir)/%.dpatch
        @if [ -x $< ]; then true; else chmod +x $<; fi
diff -u spambayes-1.0.4/debian/changelog spambayes-1.0.4/debian/changelog
diff -u spambayes-1.0.4/debian/control spambayes-1.0.4/debian/control
--- spambayes-1.0.4/debian/control
+++ spambayes-1.0.4/debian/control
@@ -2,7 +2,7 @@
 Section: mail
 Priority: optional
 Maintainer: Alexandre Fayolle <[email protected]>
-Build-Depends: debhelper (>= 5.0.37.1)
+Build-Depends: debhelper (>= 5.0.37.1), dpatch
 Build-Depends-Indep: python (>=2.3.5-7), python-dev (>=2.3.5-7), python-central
 Standards-Version: 3.7.3
 XS-Python-Version: current
only in patch2:
unchanged:
--- spambayes-1.0.4.orig/debian/patches/fix_import_future.dpatch
+++ spambayes-1.0.4/debian/patches/fix_import_future.dpatch
@@ -0,0 +1,310 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## fix_import_future.dpatch updated by  <[email protected]>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Move all from__future declarations to the start of each file.
+
+...@dpatch@
+diff -urNad spambayes-1.0.4~/Outlook2000/tester.py 
spambayes-1.0.4/Outlook2000/tester.py
+--- spambayes-1.0.4~/Outlook2000/tester.py     2003-12-23 23:08:38.000000000 
-0500
++++ spambayes-1.0.4/Outlook2000/tester.py      2007-09-25 23:35:39.000000000 
-0400
+@@ -1,3 +1,4 @@
++from __future__ import generators
+ # unit tester for the Outlook addin.
+ #
+ # Note we are only attempting to test Outlook specific
+@@ -8,7 +9,6 @@
+ # move this test message back around, and watch the incremental retrain
+ # in action.  Also checks that the message correctly remains classified
+ # after a message move.
+-from __future__ import generators
+ 
+ from win32com.client import constants
+ import sys
+diff -urNad spambayes-1.0.4~/contrib/spamcounts.py 
spambayes-1.0.4/contrib/spamcounts.py
+--- spambayes-1.0.4~/contrib/spamcounts.py     2004-01-12 03:36:15.000000000 
-0500
++++ spambayes-1.0.4/contrib/spamcounts.py      2007-09-25 23:32:23.000000000 
-0400
+@@ -1,4 +1,5 @@
+ #!/usr/bin/env python
++from __future__ import division
+ 
+ """
+ Check spamcounts for various tokens or patterns
+@@ -13,7 +14,6 @@
+         may not be used with -r
+ """
+ 
+-from __future__ import division
+ 
+ import sys
+ import getopt
+diff -urNad spambayes-1.0.4~/contrib/tte.py spambayes-1.0.4/contrib/tte.py
+--- spambayes-1.0.4~/contrib/tte.py    2004-10-15 01:33:53.000000000 -0400
++++ spambayes-1.0.4/contrib/tte.py     2007-09-25 23:33:26.000000000 -0400
+@@ -1,4 +1,5 @@
+ #!/usr/bin/env python
++from __future__ import division
+ 
+ """
+ Train to exhaustion: train repeatedly on a pile of ham and spam until
+@@ -61,7 +62,6 @@
+     http://www.garyrobinson.net/2004/02/spam_filtering_.html
+ """
+ 
+-from __future__ import division
+ 
+ import sys
+ import getopt
+diff -urNad spambayes-1.0.4~/scripts/sb_dbexpimp.py 
spambayes-1.0.4/scripts/sb_dbexpimp.py
+--- spambayes-1.0.4~/scripts/sb_dbexpimp.py    2004-11-22 18:40:29.000000000 
-0500
++++ spambayes-1.0.4/scripts/sb_dbexpimp.py     2007-09-25 23:36:56.000000000 
-0400
+@@ -1,4 +1,5 @@
+ #! /usr/bin/env python
++from __future__ import generators
+ 
+ """sb_dbexpimp.py - Bayes database export/import
+ 
+@@ -90,7 +91,6 @@
+ 
+ __author__ = "Tim Stone <[email protected]>"
+ 
+-from __future__ import generators
+ 
+ # Python 2.2 compatibility stuff
+ try:
+diff -urNad spambayes-1.0.4~/scripts/sb_imapfilter.py 
spambayes-1.0.4/scripts/sb_imapfilter.py
+--- spambayes-1.0.4~/scripts/sb_imapfilter.py  2007-09-25 22:39:00.000000000 
-0400
++++ spambayes-1.0.4/scripts/sb_imapfilter.py   2007-09-25 23:38:11.000000000 
-0400
+@@ -1,4 +1,5 @@
+ #!/usr/bin/env python
++from __future__ import generators
+ 
+ """An IMAP filter.  An IMAP message box is scanned and all non-scored
+ messages are scored and (where necessary) filtered.
+@@ -90,7 +91,6 @@
+ __author__ = "Tony Meyer <[email protected]>, Tim Stone"
+ __credits__ = "All the Spambayes folk."
+ 
+-from __future__ import generators
+ 
+ try:
+     True, False
+diff -urNad spambayes-1.0.4~/scripts/sb_notesfilter.py 
spambayes-1.0.4/scripts/sb_notesfilter.py
+--- spambayes-1.0.4~/scripts/sb_notesfilter.py 2004-05-02 22:08:13.000000000 
-0400
++++ spambayes-1.0.4/scripts/sb_notesfilter.py  2007-09-25 23:39:33.000000000 
-0400
+@@ -1,4 +1,5 @@
+ #! /usr/bin/env python
++from __future__ import generators
+ 
+ '''sb_notesfilter.py - Lotus Notes Spambayes interface.
+ 
+@@ -133,7 +134,6 @@
+ __author__ = "Tim Stone <[email protected]>"
+ __credits__ = "Mark Hammond, for his remarkable win32 modules."
+ 
+-from __future__ import generators
+ 
+ try:
+     True, False
+diff -urNad spambayes-1.0.4~/scripts/sb_pop3dnd.py 
spambayes-1.0.4/scripts/sb_pop3dnd.py
+--- spambayes-1.0.4~/scripts/sb_pop3dnd.py     2004-01-19 12:58:20.000000000 
-0500
++++ spambayes-1.0.4/scripts/sb_pop3dnd.py      2007-09-25 23:39:57.000000000 
-0400
+@@ -1,5 +1,4 @@
+ #!/usr/bin/env python
+-
+ from __future__ import generators
+ 
+ """POP3DND - provides drag'n'drop training ability for POP3 clients.
+diff -urNad spambayes-1.0.4~/spambayes/Corpus.py 
spambayes-1.0.4/spambayes/Corpus.py
+--- spambayes-1.0.4~/spambayes/Corpus.py       2004-04-06 09:21:46.000000000 
-0400
++++ spambayes-1.0.4/spambayes/Corpus.py        2007-09-25 23:42:05.000000000 
-0400
+@@ -1,4 +1,5 @@
+ #! /usr/bin/env python
++from __future__ import generators
+ 
+ '''Corpus.py - Spambayes corpus management framework.
+ 
+@@ -79,8 +80,6 @@
+ __author__ = "Tim Stone <[email protected]>"
+ __credits__ = "Richie Hindle, Tim Peters, all the spambayes contributors."
+ 
+-from __future__ import generators
+-
+ try:
+     True, False
+ except NameError:
+diff -urNad spambayes-1.0.4~/spambayes/FileCorpus.py 
spambayes-1.0.4/spambayes/FileCorpus.py
+--- spambayes-1.0.4~/spambayes/FileCorpus.py   2004-04-02 13:10:52.000000000 
-0500
++++ spambayes-1.0.4/spambayes/FileCorpus.py    2007-09-25 23:42:43.000000000 
-0400
+@@ -1,4 +1,5 @@
+ #! /usr/bin/env python
++from __future__ import generators
+ 
+ """FileCorpus.py - Corpus composed of file system artifacts
+ 
+@@ -82,8 +83,6 @@
+ __author__ = "Tim Stone <[email protected]>"
+ __credits__ = "Richie Hindle, Tim Peters, all the spambayes contributors."
+ 
+-from __future__ import generators
+-
+ from spambayes import Corpus
+ from spambayes import message
+ from spambayes import storage
+diff -urNad spambayes-1.0.4~/spambayes/TestToolsUI.py 
spambayes-1.0.4/spambayes/TestToolsUI.py
+--- spambayes-1.0.4~/spambayes/TestToolsUI.py  2004-01-30 15:07:40.000000000 
-0500
++++ spambayes-1.0.4/spambayes/TestToolsUI.py   2007-09-25 23:44:36.000000000 
-0400
+@@ -1,3 +1,4 @@
++from __future__ import generators
+ """Testing Tools Web Interface
+ 
+ Classes:
+@@ -20,7 +21,6 @@
+ # The Python Software Foundation and is covered by the Python Software
+ # Foundation license.
+ 
+-from __future__ import generators
+ 
+ __author__ = "Tony Meyer <[email protected]>"
+ __credits__ = "All the Spambayes folk."
+diff -urNad spambayes-1.0.4~/spambayes/cdb.py spambayes-1.0.4/spambayes/cdb.py
+--- spambayes-1.0.4~/spambayes/cdb.py  2003-12-11 13:45:07.000000000 -0500
++++ spambayes-1.0.4/spambayes/cdb.py   2007-09-25 23:40:52.000000000 -0400
+@@ -1,4 +1,6 @@
+ #! /usr/bin/env python
++from __future__ import generators
++
+ """
+ Dan Bernstein's CDB implemented in Python
+ 
+@@ -6,7 +8,6 @@
+ 
+ """
+ 
+-from __future__ import generators
+ 
+ import os
+ import struct
+diff -urNad spambayes-1.0.4~/spambayes/classifier.py 
spambayes-1.0.4/spambayes/classifier.py
+--- spambayes-1.0.4~/spambayes/classifier.py   2004-11-09 17:03:27.000000000 
-0500
++++ spambayes-1.0.4/spambayes/classifier.py    2007-09-25 23:41:31.000000000 
-0400
+@@ -1,5 +1,4 @@
+ #! /usr/bin/env python
+-
+ from __future__ import generators
+ 
+ # An implementation of a Bayes-like spam classifier.
+diff -urNad spambayes-1.0.4~/spambayes/mboxutils.py 
spambayes-1.0.4/spambayes/mboxutils.py
+--- spambayes-1.0.4~/spambayes/mboxutils.py    2004-05-04 09:29:34.000000000 
-0400
++++ spambayes-1.0.4/spambayes/mboxutils.py     2007-09-25 23:43:22.000000000 
-0400
+@@ -1,4 +1,6 @@
+ #! /usr/bin/env python
++from __future__ import generators
++
+ """Utilities for dealing with various types of mailboxes.
+ 
+ This is mostly a wrapper around the various useful classes in the
+@@ -18,7 +20,6 @@
+ 
+ """
+ 
+-from __future__ import generators
+ 
+ import os
+ import sys
+diff -urNad spambayes-1.0.4~/spambayes/message.py 
spambayes-1.0.4/spambayes/message.py
+--- spambayes-1.0.4~/spambayes/message.py      2004-12-21 18:12:55.000000000 
-0500
++++ spambayes-1.0.4/spambayes/message.py       2007-09-25 23:43:50.000000000 
-0400
+@@ -1,4 +1,5 @@
+ #! /usr/bin/env python
++from __future__ import generators
+ 
+ """message.py - Core Spambayes classes.
+ 
+@@ -75,8 +76,6 @@
+ __author__ = "Tim Stone <[email protected]>"
+ __credits__ = "Mark Hammond, Tony Meyer, all the spambayes contributors."
+ 
+-from __future__ import generators
+-
+ try:
+     True, False
+ except NameError:
+diff -urNad spambayes-1.0.4~/spambayes/tokenizer.py 
spambayes-1.0.4/spambayes/tokenizer.py
+--- spambayes-1.0.4~/spambayes/tokenizer.py    2004-02-12 17:07:55.000000000 
-0500
++++ spambayes-1.0.4/spambayes/tokenizer.py     2007-09-25 23:45:13.000000000 
-0400
+@@ -1,7 +1,7 @@
+ #! /usr/bin/env python
++from __future__ import generators
+ """Module to tokenize email messages for spam filtering."""
+ 
+-from __future__ import generators
+ 
+ import email
+ import email.Message
+diff -urNad spambayes-1.0.4~/testtools/mboxtest.py 
spambayes-1.0.4/testtools/mboxtest.py
+--- spambayes-1.0.4~/testtools/mboxtest.py     2003-01-28 22:23:35.000000000 
-0500
++++ spambayes-1.0.4/testtools/mboxtest.py      2007-09-25 23:46:17.000000000 
-0400
+@@ -1,4 +1,5 @@
+ #! /usr/bin/env python
++from __future__ import generators
+ """mboxtest.py: A test driver for classifier.
+ 
+ Usage: mboxtest.py [options] <ham> <spam>
+@@ -18,7 +19,6 @@
+         Read no more than MSGS messages from mailbox.
+ """
+ 
+-from __future__ import generators
+ 
+ import getopt
+ import mailbox
+diff -urNad spambayes-1.0.4~/testtools/timcv.py 
spambayes-1.0.4/testtools/timcv.py
+--- spambayes-1.0.4~/testtools/timcv.py        2004-04-07 02:49:04.000000000 
-0400
++++ spambayes-1.0.4/testtools/timcv.py 2007-09-25 23:46:42.000000000 -0400
+@@ -1,4 +1,5 @@
+ #! /usr/bin/env python
++from __future__ import generators
+ 
+ # A driver for N-fold cross validation.
+ 
+@@ -46,7 +47,6 @@
+ If that exists, it can be used to change the settings in Options.options.
+ """
+ 
+-from __future__ import generators
+ 
+ import os
+ import sys
+diff -urNad spambayes-1.0.4~/testtools/weaktest.py 
spambayes-1.0.4/testtools/weaktest.py
+--- spambayes-1.0.4~/testtools/weaktest.py     2004-01-12 03:36:16.000000000 
-0500
++++ spambayes-1.0.4/testtools/weaktest.py      2007-09-25 23:47:50.000000000 
-0400
+@@ -1,4 +1,5 @@
+ #! /usr/bin/env python
++from __future__ import generators
+ 
+ # A test driver using "the standard" test directory structure.
+ # This simulates a user that gets E-mail, and only trains on fp,
+@@ -29,7 +30,6 @@
+ If that exists, it can be used to change the settings in Options.options.
+ """
+ 
+-from __future__ import generators
+ 
+ import sys,os
+ 
+diff -urNad spambayes-1.0.4~/utilities/pop3graph.py 
spambayes-1.0.4/utilities/pop3graph.py
+--- spambayes-1.0.4~/utilities/pop3graph.py    2004-01-12 03:36:16.000000000 
-0500
++++ spambayes-1.0.4/utilities/pop3graph.py     2007-09-25 23:48:29.000000000 
-0400
+@@ -1,10 +1,10 @@
+ #!/usr/bin/env python
++from __future__ import division
+ 
+ """Analyse the pop3proxy's caches and produce a graph of how accurate
+ classifier has been over time.  Only really meaningful if you started
+ with an empty database."""
+ 
+-from __future__ import division
+ 
+ import sys
+ import getopt

--- End Message ---
--- Begin Message ---
Source: spambayes
Source-Version: 1.0.4-6

We believe that the bug you reported is fixed in the latest version of
spambayes, which is due to be installed in the Debian FTP archive:

spambayes_1.0.4-6.debian.tar.gz
  to main/s/spambayes/spambayes_1.0.4-6.debian.tar.gz
spambayes_1.0.4-6.dsc
  to main/s/spambayes/spambayes_1.0.4-6.dsc
spambayes_1.0.4-6_all.deb
  to main/s/spambayes/spambayes_1.0.4-6_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexandre Fayolle <[email protected]> (supplier of updated spambayes package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 05 Nov 2010 17:48:58 +0100
Source: spambayes
Binary: spambayes
Architecture: source all
Version: 1.0.4-6
Distribution: unstable
Urgency: low
Maintainer: Alexandre Fayolle <[email protected]>
Changed-By: Alexandre Fayolle <[email protected]>
Description: 
 spambayes  - Python-based spam filter using statistical analysis
Closes: 484442 485701 491278 582001
Changes: 
 spambayes (1.0.4-6) unstable; urgency=low
 .
   * acknowledge NMU (closes:  #484442)
   * updated to 3.0 (quilt) format
   * switched to python-support
   * split diff.gz in several quilt patches (closes: #485701)
   * fix remaining erroneous from __future__ imports (closes: #582001)
   * handle exception which can be generated by some ill-formed emails
     (closes: #491278)
   * updated standards to 3.9.1:
     -  renamed scripts in order not to have .py files in /usr/bin
        (but create bw compat symlinks in postinst)
   * removed sb_pop3dnd (not working with current version of twisted in Debian,
     and nobody seems to use it since no bug report was filed)
Checksums-Sha1: 
 e212a875b874b8a23b4f58a773678a52d06c7194 1760 spambayes_1.0.4-6.dsc
 4fc7c44849d142639e49eb1455744912c050415e 7050 spambayes_1.0.4-6.debian.tar.gz
 1985c16b6c17ba2242d6342c9b7f5d85f008fa73 337550 spambayes_1.0.4-6_all.deb
Checksums-Sha256: 
 94d70cdd74547d0b60dedd9f372b9b963e8b1386da396b206977382765a79c63 1760 
spambayes_1.0.4-6.dsc
 c8af6df662c9a40ad2f4c06f910c7cc7b4925558a3d61ff1db7978082ab6dca6 7050 
spambayes_1.0.4-6.debian.tar.gz
 2c443f47772d82a6fca8e2fa1988bbd7bbaf1abecf8fe8774b509c4a999b7d31 337550 
spambayes_1.0.4-6_all.deb
Files: 
 4f8c36b47d82a131325ba7c54fcae9d2 1760 mail optional spambayes_1.0.4-6.dsc
 afd34448a592634dd2bd70a6f311148b 7050 mail optional 
spambayes_1.0.4-6.debian.tar.gz
 63b86f3ba366ee5c990dcb5faa47e362 337550 mail optional spambayes_1.0.4-6_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIVAwUBTNQ2maFvhb7f0530AQJFbxAAsvGNf3m+usKiBhoexEyx1M2n8wJGMUlc
HmPDNZa+C14UwDYlq/61Iskg9qjjTv3/K1WGkXokIhiaTe54TpKsw5msDk7H2P+i
DiNESFGCJM+DnUSDYZLbC+s9L7vDDCIb7dGNIPHWi4cJcs6s2BzV0MZT4FYfQoyn
j8V5WkIjpAi4IBV2w6BoW4V1q4tXkMqN1rvI2lVRssgthLRWJziQ2GYojQBRZgHX
ZW4kdj0EHSXLpHEjL7YqJTNLrJTUWtvTRYPCbdyLtP8CtJd+7yW7EmgPB/a1+2lb
JWNcaiYLVO0d0xzsggUAcmwmoESRUZrpk1lDWns4fWd2K3jodXzjzBCjCTYcMqoJ
pTUkmwV90eOIufz4LE7tutAobcj9nFjslBDxerTfeGjgDaV2n9lG7zYCUQiuG1jT
oKELiNwrloMvfl2n/TQFiCC6Wc56uy7VxXhSE6kbw82yw/9tsf+3odr+9YecgFBF
6korEUoX3IekiikmNIPY60cZRZv9fCSv/hIHkoAk5njFu/gN33B0hutN9ggejwE6
BJQ6tHxGUMlB8G0V1THOm83HofRmW63HxSguJbPtBzgqWT21wUQm8wsFh8l8eqzn
Y36zqblxY+vGA7yBTzIRlECn5CpOM55bhFNzeURz6wdQItO2mZR1RCbUE7otyGRq
erXmyglF+lQ=
=cpye
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to