From a36dc64c8ef99278ab3d9888f8b451cf97e63472 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Mon, 22 Apr 2013 18:43:09 +0300 Subject: [PATCH] buildpackage: catch and handle DebianSourceError gracefully Signed-off-by: Markus Lehtonen --- gbp/scripts/buildpackage.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gbp/scripts/buildpackage.py b/gbp/scripts/buildpackage.py index 07153e8..9c02e3e 100755 --- a/gbp/scripts/buildpackage.py +++ b/gbp/scripts/buildpackage.py @@ -28,7 +28,7 @@ from gbp.command_wrappers import (Command, RemoveTree) from gbp.config import (GbpOptionParserDebian, GbpOptionGroup) from gbp.deb.git import (GitRepositoryError, DebianGitRepository) -from gbp.deb.source import DebianSource +from gbp.deb.source import DebianSource, DebianSourceError from gbp.git.vfs import GitVfs from gbp.errors import GbpError import gbp.log @@ -580,6 +580,10 @@ def main(argv): if len(err.__str__()): gbp.log.err(err) retval = 1 + except DebianSourceError as err: + gbp.log.err(err) + source = None + retval = 1 finally: drop_index() -- 2.7.4