summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Conrad <adconrad@0c3.net>2011-10-04 01:31:11 -0600
committerAdam Conrad <adconrad@0c3.net>2011-10-04 01:31:11 -0600
commit25cd6cf8378870b6a377aba661321dd5daa5145e (patch)
tree51bfba9dbe50843471b03ffc5e57b7b4889ae6cf
parent78851c217028f2ba67bf2bc98553dcd54d944563 (diff)
use update-apt-xapian-index -u on armel
-rw-r--r--debian/apt.cron.daily5
-rw-r--r--debian/changelog8
2 files changed, 12 insertions, 1 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily
index 1dfaa04a3..efc61362c 100644
--- a/debian/apt.cron.daily
+++ b/debian/apt.cron.daily
@@ -457,7 +457,10 @@ if check_stamp $UPDATE_STAMP $UpdateInterval; then
# now run apt-xapian-index if it is installed to ensure the index
# is up-to-date
if [ -x /usr/sbin/update-apt-xapian-index ]; then
- nice ionice -c3 update-apt-xapian-index -q
+ if [ "$(dpkg --print-architecture)" = "armel" ]; then
+ xapian_extra_args='-u'
+ fi
+ nice ionice -c3 update-apt-xapian-index -q $xapian_extra_args
fi
else
debug_echo "download updated metadata (error)"
diff --git a/debian/changelog b/debian/changelog
index 18ef6f2f8..e3944d769 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+apt (0.8.16~exp5ubuntu13) UNRELEASED; urgency=low
+
+ * On armel, call update-apt-xapian-index with '-u' to keep the CPU
+ and I/O usage low. We would do this on all arches, but there's a
+ regression risk here, but that's better than killing slow systems.
+
+ -- Adam Conrad <adconrad@ubuntu.com> Tue, 04 Oct 2011 01:24:01 -0600
+
apt (0.8.16~exp5ubuntu12) oneiric; urgency=low
[ David Kalnischkies ]