~xav0989/ubuntu/vivid/mailman/ubuntu-logo

« back to all changes in this revision

Viewing changes to debian/patches/62_new_list_bad_pending_requests.patch

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst
  • Date: 2009-03-14 14:18:16 UTC
  • mfrom: (1.1.5 upstream) (2.2.5 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090314141816-ngrjwz59tihjh4hz
Tags: 1:2.1.12-1
* New upstream release.
  + Minimum Python version is now 2.4.
  + Patches obsoleted (incorporated or not useful anymore):
    00_stolen_from_HEAD,
    11_handle_propfind.patch,
    32_MIME_fixup,
    62_new_list_bad_pending_requests,
    67_update_handle_old_versions,
    68_update_catalan,
    78_DeprecationWarning,
    80_fix_string_search.
    Refresh all others. Many thanks to Mark Sapiro and
    Paul Wise for the help in cleaning this up.
  + Fixes bounce handling NotAMemberError (closes: #517997).
* Various packaging cleanups, upgrade debhelper to level 7.
* Removes embedded copy of pythonlib/email module.
* Checked for policy 3.8.1, remove shipped var/{run,lock}
  dirs, they are already created correctly by the init script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Patch: 62_new_list_bad_pending_requests.patch
2
 
Author: Richard Mortimer <richm@oldelvet.org.uk>
3
 
Only mail 'pending admin requests' if the database for the
4
 
particular list exists, so we do not send out '-1' requests.
5
 
Index: mailman-2.1.10/Mailman/ListAdmin.py
6
 
===================================================================
7
 
--- mailman-2.1.10.orig/Mailman/ListAdmin.py    2008-04-21 20:28:22.000000000 +0200
8
 
+++ mailman-2.1.10/Mailman/ListAdmin.py 2008-06-15 18:49:49.000000000 +0200
9
 
@@ -130,8 +130,11 @@
10
 
 
11
 
     def NumRequestsPending(self):
12
 
         self.__opendb()
13
 
-        # Subtract one for the version pseudo-entry
14
 
-        return len(self.__db) - 1
15
 
+        if self.__db.has_key('version'):
16
 
+            # Subtract one for the version pseudo-entry
17
 
+            return len(self.__db) - 1
18
 
+        else:
19
 
+            return len(self.__db)
20
 
 
21
 
     def __getmsgids(self, rtype):
22
 
         self.__opendb()