]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/acquire-item.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 6 Feb 2007 09:49:25 +0000 (10:49 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 6 Feb 2007 09:49:25 +0000 (10:49 +0100)
  - default to "/usr/lib/apt/apt-report-mirror-failure"
* cmdline/apt-report-mirror-failure:
  - no default comit url for now
* debian/rules:
  - move apt-report-mirror-failure into /usr/lib/apt
* doc/examples/configure-index:
  - more documentation
* methods/mirror.cc:
  - updated TODO

apt-pkg/acquire-item.cc
cmdline/apt-report-mirror-failure
cmdline/makefile
debian/rules
doc/examples/configure-index
methods/mirror.cc

index 14610d6e93c57ad2e616c95ecb51e755f787f8bc..38530152fa1cd1ff3efabfa4c81684b990d0b0ce 100644 (file)
@@ -154,7 +154,7 @@ void pkgAcquire::Item::ReportMirrorFailure(string FailCode)
    const char *Args[40];
    unsigned int i = 0;
    string report = _config->Find("Methods::Mirror::ProblemReporting", 
-                                "/usr/bin/apt-report-mirror-failure");
+                                "/usr/lib/apt/apt-report-mirror-failure");
    if(!FileExists(report))
       return;
    Args[i++] = report.c_str();
index fb43f0e7497e6ad50aee3e08d9d8fd2299a25ace..1567e78e30f751b8abe8e7c627154f8817e7e95e 100755 (executable)
@@ -5,8 +5,8 @@ import urllib
 import apt_pkg
 
 apt_pkg.init()
-url = apt_pkg.Config.Find("Acquire::Mirror::ReportFailures",
-                          "http://people.ubuntu.com:9000/mirror-failure")
+url = apt_pkg.Config.Find("Acquire::Mirror::ReportFailures", None)
+                          #"http://people.ubuntu.com:9000/mirror-failure")
                           #"http://localhost:9000/mirror-failure")
 if not url:
     sys.exit(0)
index f07c7da3bf1ce521afeacea4970c4a868a6e4542..8d284c2f3afb18d5cc433d32dd7f2267f0bfcd30 100644 (file)
@@ -55,6 +55,6 @@ include $(COPY_H)
 
 # The apt-key program
 SOURCE=apt-report-mirror-failure
-TO=$(LIB)
+TO=$(BIN)
 TARGET=program
 include $(COPY_H)
index 02ee734bb24c71580e82583cabb8bb7de755ed96..9e87b1723213f9908cfdde94824e2838961808ef 100755 (executable)
@@ -214,6 +214,10 @@ apt: build debian/shlibs.local
 
 #      head -n 500 ChangeLog > debian/ChangeLog
 
+       # move the mirror failure script in place
+       mv debian/$@/usr/bin/apt-report-mirror-failure \
+          debian/$@/usr/lib/apt/apt-report-mirror-failure \
+
        dh_installexamples -p$@ $(BLD)/docs/examples/*
        dh_installman -p$@ 
        dh_installcron -p$@
index 81bb6b3b056e9c2ac0ae06dd4d8b111a37eda565..81fa4c52f3e1594b2ed238b68c2de615f35448ca 100644 (file)
@@ -166,6 +166,10 @@ Acquire
    RefreshInterval "360"; // refresh interval in minutes
    MaxAge "90";           // max age for a mirror file in days before 
                           // it gets deleted
+   // mirror failure reporting script
+   ProblemReporting "/usr/lib/apt/apt-report-mirror-failure"; 
+   // mirror failure reporting url
+   ReportFailures "http://example.com/mirror-failure"; 
   };
 };
 
index c5c0c746173b10a43f8e8d7179d2fcf9eeae4fed..9a86a10c214b926455a46e799b42c772add9d853 100644 (file)
@@ -42,6 +42,7 @@ using namespace std;
  * - deal with runing as non-root because we can't write to the lists 
      dir then -> use the cached mirror file
  * - better method to download than having a pkgAcquire interface here
+ *   and better error handling there!
  * - support more than http
  * - testing :)
  */