summaryrefslogtreecommitdiff
path: root/gbp/scripts/buildpackage.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2013-04-22 18:43:09 +0300
committerGuido Günther <agx@sigxcpu.org>2013-04-25 20:56:52 +0200
commita36dc64c8ef99278ab3d9888f8b451cf97e63472 (patch)
tree649c013e9756319d80629c8430b9e9803dd2199b /gbp/scripts/buildpackage.py
parent9e3267a4fd47e5ff95ebbd92305221aa88ac8bb8 (diff)
downloadgit-buildpackage-a36dc64c8ef99278ab3d9888f8b451cf97e63472.tar.gz
git-buildpackage-a36dc64c8ef99278ab3d9888f8b451cf97e63472.tar.bz2
git-buildpackage-a36dc64c8ef99278ab3d9888f8b451cf97e63472.zip
buildpackage: catch and handle DebianSourceError gracefully
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/scripts/buildpackage.py')
-rwxr-xr-xgbp/scripts/buildpackage.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gbp/scripts/buildpackage.py b/gbp/scripts/buildpackage.py
index 07153e89..9c02e3e3 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()