summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
Diffstat (limited to 'cmdline')
-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]