diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-01-18 19:25:35 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-01-18 22:07:47 +0100 |
commit | d8d2347bdd45074f8f194265d948b50108d22051 (patch) | |
tree | 21d42a3d5ebb7ac384305688f9f4b012398ea6d8 /gbp/command_wrappers.py | |
parent | f2f03b79db00f04e5fe2f3db0307eda419373ec8 (diff) | |
download | git-buildpackage-d8d2347bdd45074f8f194265d948b50108d22051.tar.gz git-buildpackage-d8d2347bdd45074f8f194265d948b50108d22051.tar.bz2 git-buildpackage-d8d2347bdd45074f8f194265d948b50108d22051.zip |
git-import-dscs: Ignore debsnap download errors
to cope with binNMUs. Based on a patch from Jonathan Nieder.
Closes: #610376
Diffstat (limited to 'gbp/command_wrappers.py')
-rw-r--r-- | gbp/command_wrappers.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gbp/command_wrappers.py b/gbp/command_wrappers.py index 28f62a0a..545380c1 100644 --- a/gbp/command_wrappers.py +++ b/gbp/command_wrappers.py @@ -28,6 +28,7 @@ class Command(object): self.args = args self.run_error = "Couldn't run '%s'" % (" ".join([self.cmd] + self.args)) self.shell = shell + self.retcode = 1 if extra_env is not None: self.env = os.environ.copy() self.env.update(extra_env) @@ -64,6 +65,7 @@ class Command(object): retcode = 1 if retcode: log.err(self.run_error) + self.retcode = retcode return retcode def __call__(self, args=[]): |