aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-06-26 12:23:31 +0200
committerGuido Günther <agx@sigxcpu.org>2017-06-26 12:31:46 +0200
commitf1e9d857248164b8b3cd31929870f97035e91e2b (patch)
treee02def868da6a5ae8c79c3f1d158616ae87b77d9
parentf1c3a6f4dc6ceee5be5d49b4d193da8fd36c8920 (diff)
Don't print debsnap errors twice
Closes: #851128
-rw-r--r--gbp/scripts/import_dscs.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gbp/scripts/import_dscs.py b/gbp/scripts/import_dscs.py
index 21abbea..fc28db0 100644
--- a/gbp/scripts/import_dscs.py
+++ b/gbp/scripts/import_dscs.py
@@ -1,6 +1,6 @@
# vim: set fileencoding=utf-8 :
#
-# (C) 2008, 2009, 2010 Guido Guenther <agx@sigxcpu.org>
+# (C) 2008, 2009, 2010, 2017 Guido Guenther <agx@sigxcpu.org>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -55,9 +55,10 @@ def fetch_snapshots(pkg, downloaddir):
debsnap = gbpc.Command("debsnap", ['--force', '--destdir=%s' %
(downloaddir), pkg])
try:
- debsnap()
- except gbpc.CommandExecFailed:
+ debsnap(quiet=True)
+ except gbpc.CommandExecFailed as e:
if debsnap.retcode == 2:
+ gbp.log.error(e)
gbp.log.warn("Some packages failed to download. Continuing.")
pass
else: