diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-04-22 18:42:00 +0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-04-25 20:55:39 +0200 |
commit | 9e3267a4fd47e5ff95ebbd92305221aa88ac8bb8 (patch) | |
tree | 417779589136d978c1f36d724e8999716e01307b /gbp/deb | |
parent | c007e2d80d4f0d64673d31c728e22e89add0add6 (diff) | |
download | git-buildpackage-9e3267a4fd47e5ff95ebbd92305221aa88ac8bb8.tar.gz git-buildpackage-9e3267a4fd47e5ff95ebbd92305221aa88ac8bb8.tar.bz2 git-buildpackage-9e3267a4fd47e5ff95ebbd92305221aa88ac8bb8.zip |
DebianSource: raise DebianSourceError if reading changelog fails
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/deb')
-rw-r--r-- | gbp/deb/source.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gbp/deb/source.py b/gbp/deb/source.py index 1959ec9d..a23f8a7e 100644 --- a/gbp/deb/source.py +++ b/gbp/deb/source.py @@ -78,8 +78,11 @@ class DebianSource(object): Return the L{gbp.deb.ChangeLog} """ if not self._changelog: - clf = self._vfs.open('debian/changelog') - self._changelog = ChangeLog(clf.read()) + try: + clf = self._vfs.open('debian/changelog') + self._changelog = ChangeLog(clf.read()) + except IOError as err: + raise DebianSourceError('Failed to read changelog: %s' % err) return self._changelog @property |