summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMichael Vogt <egon@tas>2007-01-24 14:42:17 +0100
committerMichael Vogt <egon@tas>2007-01-24 14:42:17 +0100
commit362d29343e5d25248bcd84300aa1b18effe891e7 (patch)
treec00a61e7e519e7b3d43bf7ba794c54e6e5c7d06d /cmdline
parentb47081521b0df1f835a2111254fa1fcd77240a85 (diff)
make the mirror failures actually produce a error message
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/makefile6
-rwxr-xr-xcmdline/report-mirror-failure21
2 files changed, 6 insertions, 21 deletions
diff --git a/cmdline/makefile b/cmdline/makefile
index 882a0e1b5..f07c7da3b 100644
--- a/cmdline/makefile
+++ b/cmdline/makefile
@@ -52,3 +52,9 @@ SOURCE=apt-key
TO=$(BIN)
TARGET=program
include $(COPY_H)
+
+# The apt-key program
+SOURCE=apt-report-mirror-failure
+TO=$(LIB)
+TARGET=program
+include $(COPY_H)
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()
-
-