diff options
author | Michael Vogt <egon@tas> | 2007-01-24 14:42:17 +0100 |
---|---|---|
committer | Michael Vogt <egon@tas> | 2007-01-24 14:42:17 +0100 |
commit | 362d29343e5d25248bcd84300aa1b18effe891e7 (patch) | |
tree | c00a61e7e519e7b3d43bf7ba794c54e6e5c7d06d /cmdline/report-mirror-failure | |
parent | b47081521b0df1f835a2111254fa1fcd77240a85 (diff) |
make the mirror failures actually produce a error message
Diffstat (limited to 'cmdline/report-mirror-failure')
-rwxr-xr-x | cmdline/report-mirror-failure | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/cmdline/report-mirror-failure b/cmdline/report-mirror-failure deleted file mode 100755 index 8301ed079..000000000 --- a/cmdline/report-mirror-failure +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/python - -import sys -import urllib -import apt_pkg - -apt_pkg.init() -url = apt_pkg.Config.Find("Acquire::Mirror::ReportFailures", - "http://people.ubuntu.com:9000/mirror-failure") - #"http://localhost:9000/mirror-failure") -if not url: - sys.exit(0) - -data = {} -data['url'] = sys.argv[1] -data['error'] = sys.argv[2] -f = urllib.urlopen(url, urllib.urlencode(data)) -f.read() -f.close() - - |