summaryrefslogtreecommitdiffstats
path: root/bin/apt-update-file
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2008-12-02 21:13:10 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2008-12-02 21:13:10 +0000
commitdebbbee8aa4b0ae1a6ed70ab031646c1a53aec11 (patch)
tree9cf1cb0161337142b6a589b8bbddfaa1fc01b3f4 /bin/apt-update-file
parentc0f885f033ad86771915406a3733eb98049df99a (diff)
bin/apt-update-file: In case of an error, print source and target
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@10581 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/apt-update-file')
-rwxr-xr-xbin/apt-update-file8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/apt-update-file b/bin/apt-update-file
index 51c52accab..4fdcc0d914 100755
--- a/bin/apt-update-file
+++ b/bin/apt-update-file
@@ -26,4 +26,10 @@ if len(sys.argv) <> 3:
sys.stderr.write("usage: apt-update-file REMOTE LOCAL\n")
sys.exit(1)
-debian_support.updateFile(sys.argv[1], sys.argv[2])
+try:
+ debian_support.updateFile(sys.argv[1], sys.argv[2])
+except:
+ print >>sys.stderr, \
+ "error: in download of %s to %s:" % (repr(sys.argv[1]),
+ repr(sys.argv[2]))
+ raise

© 2014-2024 Faster IT GmbH | imprint | privacy policy