aboutsummaryrefslogtreecommitdiff
path: root/git-import-dsc
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2008-02-29 18:04:50 +0100
committerGuido Guenther <agx@sigxcpu.org>2008-02-29 18:04:50 +0100
commitf24f5ec36544f2e6374b68575d94657135f93640 (patch)
tree0032e96658a415a829fa2edd4102e4e7524da7fb /git-import-dsc
parentd0aafce34f9269c66da860e58e8cfe04db5240e3 (diff)
don't throw a python exception on tag failures or non existant branches
Diffstat (limited to 'git-import-dsc')
-rwxr-xr-xgit-import-dsc3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-import-dsc b/git-import-dsc
index b94879f5..59d2c215 100755
--- a/git-import-dsc
+++ b/git-import-dsc
@@ -263,7 +263,8 @@ def main(argv):
replace_source_tree(repo, unpack_dir, options.filters)
apply_debian_patch(src, dirs, options)
except gbpc.CommandExecFailed:
- raise GbpError
+ os.chdir(dirs['top'])
+ ret = 1
except GbpError, err:
if len(err.__str__()):
print >>sys.stderr, err