diff options
author | Florian Weimer <fw@deneb.enyo.de> | 2008-12-02 21:13:10 +0000 |
---|---|---|
committer | Florian Weimer <fw@deneb.enyo.de> | 2008-12-02 21:13:10 +0000 |
commit | e6733930bfb3c40cbe7a43d38e8c3487c9b8d9bc (patch) | |
tree | 3d38e8b0b7816b092de1a20b71812e9a17660e43 /bin/apt-update-file | |
parent | 8da1786ff09a29e4ec8ca4e8daeb2aa707f25d08 (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-x | bin/apt-update-file | 8 |
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 |