~ubuntu-branches/ubuntu/oneiric/python-distutils-extra/oneiric

« back to all changes in this revision

Viewing changes to debian/local/python-mkdebian

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-08-08 12:10:16 UTC
  • Revision ID: james.westby@ubuntu.com-20090808121016-4aeh8ow5vdghxmm0
Tags: 2.9
* Add missing intltool build dependency. (Closes: #536914)
* python-mkdebian: Improve error message when devscripts is not installed.
  Add a Suggests: devscripts.
* auto.py: Automatically install GNOME help files. Thanks to Severin
  Heiniger!
* build_help: Fix installation path of docbook files. Thanks to Severin
  Heiniger!
* auto.py: Mark 'setup.cfg' as known. Thanks to Severin Heiniger!
* auto.py, sdist_auto: Turn filter_prefix and filter_suffix into properites
  so that subclasses can extend them. Thanks to Severin Heiniger!
* build_help: Make whitespace and quotes consistent.
* auto.py: Add test case for automatic help installation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
 debhelper (>= 6),
141
141
 python,
142
142
 python-central (>= 0.6.11),
143
 
 python-distutils-extra (>= 2.8)%s''' % bdeps,
 
143
 python-distutils-extra (>= 2.9)%s''' % bdeps,
144
144
        'Maintainer': author,
145
145
        'Package': egg['Name'],
146
146
        'Description' : egg.get('Summary', '') + '\n '.join(['',] + list(textwrap.wrap(egg.get('Description', ''), 72)))
200
200
    assert lsb_release.returncode == 0
201
201
 
202
202
    if not os.path.exists('debian/changelog'):
203
 
        assert subprocess.call(['debchange', '--create', '--package', egg['Name'],
204
 
            '-D' + release, '-v' + egg['Version'], 'Initial release.']) == 0
 
203
        try:
 
204
            assert subprocess.call(['debchange', '--create', '--package', egg['Name'],
 
205
                '-D' + release, '-v' + egg['Version'], 'Initial release.']) == 0
 
206
        except OSError, e:
 
207
            print >> sys.stderr, 'ERROR: Could not run "debchange": %s\n' \
 
208
                'You need to install the "devscripts" package for this.' % str(e)
 
209
            sys.exit(0)
205
210
    else:
206
211
        # this will just fail if we already have that version, which is okay.
207
212
        subprocess.call(['debchange', '-D' + release, '-v' + egg['Version'],