Merge lp:~statik/python-distutils-extra/bug-464137 into lp:python-distutils-extra

Proposed by Elliot Murphy
Status: Merged
Merged at revision: not available
Proposed branch: lp:~statik/python-distutils-extra/bug-464137
Merge into: lp:python-distutils-extra
Diff against target: 15 lines (+5/-0)
1 file modified
debian/local/python-mkdebian (+5/-0)
To merge this branch: bzr merge lp:~statik/python-distutils-extra/bug-464137
Reviewer Review Type Date Requested Status
Registry Administrators Pending
Review via email: mp+18742@code.launchpad.net

Commit message

Warn and exit if unable to create the changelog due to debchange missing.

To post a comment you must log in.
Revision history for this message
Elliot Murphy (statik) wrote :

Warn and exit if unable to create the changelog due to debchange missing.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/local/python-mkdebian'
2--- debian/local/python-mkdebian 2010-02-05 22:42:55 +0000
3+++ debian/local/python-mkdebian 2010-02-06 02:11:10 +0000
4@@ -199,6 +199,11 @@
5 release = lsb_release.communicate()[0].strip()
6 assert lsb_release.returncode == 0
7
8+ if not os.path.exists('/usr/bin/debchange'):
9+ print >> sys.stderr, 'ERROR: Could not find "debchange".\n' \
10+ 'You need to install the "devscripts" package for this.'
11+ sys.exit(0)
12+
13 if not os.path.exists('debian/changelog'):
14 if not changelog:
15 changelog = ['Initial release.']

Subscribers

People subscribed via source and target branches

to all changes:
to status/vote changes: