--- Begin Message ---
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock
Please unblock package pmailq
The current version of pmailq in jessie has a very annoying bug which
make it crash while using the "del" command.
Without the "del" command working properly, the program is pretty
useless.
debdiff is attached (this is a 4 lines patch)
Thanks,
unblock pmailq/0.5-2
-- System Information:
Debian Release: 7.8
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
diff -Nru pmailq-0.5/debian/changelog pmailq-0.5/debian/changelog
--- pmailq-0.5/debian/changelog 2015-01-20 19:26:50.000000000 +0000
+++ pmailq-0.5/debian/changelog 2015-01-21 06:26:04.000000000 +0000
@@ -1,3 +1,9 @@
+pmailq (0.5-2) unstable; urgency=medium
+
+ * Add a patch to fix the delete command
+
+ -- Emmanuel Bouthenot <kolter@debian.org> Wed, 21 Jan 2015 07:25:34 +0100
+
pmailq (0.5-1) unstable; urgency=low
* New upstream release.
diff -Nru pmailq-0.5/debian/patches/fix_delete_command pmailq-0.5/debian/patches/fix_delete_command
--- pmailq-0.5/debian/patches/fix_delete_command 1970-01-01 00:00:00.000000000 +0000
+++ pmailq-0.5/debian/patches/fix_delete_command 2015-01-21 06:34:44.000000000 +0000
@@ -0,0 +1,30 @@
+Description: Fix the delete command
+Author: Emmanuel Bouthenot <kolter@debian.org>
+Forwarded: no
+Last-Update: 2015-01-21
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/pmailq
++++ b/pmailq
+@@ -20,7 +20,7 @@
+
+
+ from optparse import OptionParser, OptionGroup # needs python >= 2.3
+-import sys, os, subprocess, fcntl, select, fnmatch
++import sys, os, subprocess, fcntl, select, fnmatch, re
+
+ class Proc:
+
+@@ -209,10 +209,9 @@
+ for o in n['dest']:
+ e.append(o)
+ if self.check(m['size'], m['active'], m['hold'], e, i):
+- proc = popen2.Popen3("%s %s" % (DELQ, m['id']), True)
+- p_ret = proc.wait()
++ p_ret, _, p_stderr = Proc().run('%s %s' % (DELQ, m['id']))
+ if p_ret != 0:
+- print "deleting %s [FAILED] (%s)" % (m['id'], "".join(proc.childerr.readlines()).strip())
++ print "deleting %s [FAILED] (%s)" % (m['id'], re.sub('\s+', ' ', p_stderr).strip())
+ else:
+ print "deleting %s [OK]" % m['id']
+
diff -Nru pmailq-0.5/debian/patches/series pmailq-0.5/debian/patches/series
--- pmailq-0.5/debian/patches/series 1970-01-01 00:00:00.000000000 +0000
+++ pmailq-0.5/debian/patches/series 2015-01-20 21:46:43.000000000 +0000
@@ -0,0 +1 @@
+fix_delete_command
--- End Message ---