summaryrefslogtreecommitdiff
path: root/cmdline/apt-report-mirror-failure
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-02-01 13:02:47 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2007-02-01 13:02:47 +0100
commit361593e92a44255cc0ef98417e7457911716cab5 (patch)
tree5207820f85462c32b0ff4639f254918583200811 /cmdline/apt-report-mirror-failure
parent36280399db0ae203d3f1ae4d44b946f31e9a38ce (diff)
* get the mirror failure stuff really working
Diffstat (limited to 'cmdline/apt-report-mirror-failure')
-rwxr-xr-xcmdline/apt-report-mirror-failure4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmdline/apt-report-mirror-failure b/cmdline/apt-report-mirror-failure
index 70b16cf4f..277b23e9a 100755
--- a/cmdline/apt-report-mirror-failure
+++ b/cmdline/apt-report-mirror-failure
@@ -4,8 +4,6 @@ import sys
import urllib
import apt_pkg
-print "apt-report-mirror-failure"
-
apt_pkg.init()
url = apt_pkg.Config.Find("Acquire::Mirror::ReportFailures",
"http://people.ubuntu.com:9000/mirror-failure")
@@ -13,6 +11,8 @@ url = apt_pkg.Config.Find("Acquire::Mirror::ReportFailures",
if not url:
sys.exit(0)
+print "Reporting mirror failure to '%s'" % url
+
data = {}
data['url'] = sys.argv[1]
data['error'] = sys.argv[2]