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();
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)
# The apt-key program
SOURCE=apt-report-mirror-failure
-TO=$(LIB)
+TO=$(BIN)
TARGET=program
include $(COPY_H)
# 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$@
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";
};
};
* - 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 :)
*/