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

« back to all changes in this revision

Viewing changes to bin/update

  • 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:
34
34
"""
35
35
 
36
36
import os
37
 
import md5
38
37
import sys
39
38
import time
40
39
import errno
131
130
            # No global template
132
131
            continue
133
132
 
134
 
        gcksum = md5.new(fp.read()).digest()
 
133
        gcksum = Utils.md5_new(fp.read()).digest()
135
134
        fp.close()
136
135
        # Match against the lists/<list>/* template
137
136
        try:
139
138
        except IOError, e:
140
139
            if e.errno <> errno.ENOENT: raise
141
140
        else:
142
 
            tcksum = md5.new(fp.read()).digest()
 
141
            tcksum = Utils.md5_new(fp.read()).digest()
143
142
            fp.close()
144
143
            if gcksum == tcksum:
145
144
                os.unlink(os.path.join(mlist.fullpath(), gtemplate))
149
148
        except IOError, e:
150
149
            if e.errno <> errno.ENOENT: raise
151
150
        else:
152
 
            tcksum = md5.new(fp.read()).digest()
 
151
            tcksum = Utils.md5_new(fp.read()).digest()
153
152
            fp.close()
154
153
            if gcksum == tcksum:
155
154
                os.unlink(os.path.join(mlist.fullpath(), gtemplate + '.prev'))
159
158
        except IOError, e:
160
159
            if e.errno <> errno.ENOENT: raise
161
160
        else:
162
 
            tcksum = md5.new(fp.read()).digest()
 
161
            tcksum = Utils.md5_new(fp.read()).digest()
163
162
            fp.close()
164
163
            if gcksum == tcksum:
165
164
                os.unlink(os.path.join(mlist.fullpath(), 'en', gtemplate))
169
168
        except IOError, e:
170
169
            if e.errno <> errno.ENOENT: raise
171
170
        else:
172
 
            tcksum = md5.new(fp.read()).digest()
 
171
            tcksum = Utils.md5_new(fp.read()).digest()
173
172
            fp.close()
174
173
            if gcksum == tcksum:
175
174
                os.unlink(os.path.join(mm_cfg.TEMPLATE_DIR, gtemplate))
179
178
        except IOError, e:
180
179
            if e.errno <> errno.ENOENT: raise
181
180
        else:
182
 
            tcksum = md5.new(fp.read()).digest()
 
181
            tcksum = Utils.md5_new(fp.read()).digest()
183
182
            fp.close()
184
183
            if gcksum == tcksum:
185
184
                os.unlink(os.path.join(mm_cfg.TEMPLATE_DIR,