]>
git.saurik.com Git - apt.git/blob - cmdline/apt-report-mirror-failure
3 # This is a stub that is meant to support failure reporting of
4 # mirrors to a central database
6 # its currently not used
13 url
= apt_pkg
.Config
.find("Acquire::Mirror::ReportFailures", "")
14 #"http://people.ubuntu.com:9000/mirror-failure")
15 #"http://localhost:9000/mirror-failure")
19 print "Reporting mirror failure to '%s'" % url
22 data
['mirror'] = sys
.argv
[1]
23 data
['failurl'] = sys
.argv
[2]
24 data
['error'] = sys
.argv
[3]
25 f
= urllib
.urlopen(url
, urllib
.urlencode(data
))