- Allow users to turn off update cache to try to debug #20559 - Filter out duplicate updates to fix #488509
37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
commit f5af9b0477899e2c246ca8ff8fe5b42ba02e8009
|
|
Author: Richard Hughes <richard@hughsie.com>
|
|
Date: Mon Mar 16 15:16:43 2009 +0000
|
|
|
|
feature: add a UseUpdateCache config variable to be able to turn off the updates cache for debugging
|
|
|
|
diff --git a/etc/PackageKit.conf.in b/etc/PackageKit.conf.in
|
|
index bc0bea2..c2f1303 100644
|
|
--- a/etc/PackageKit.conf.in
|
|
+++ b/etc/PackageKit.conf.in
|
|
@@ -104,3 +104,11 @@ UpdateCheckProcesses=true
|
|
# default=true
|
|
CheckTestingRepos=true
|
|
|
|
+# Use update cache when possible to avoid using the backend
|
|
+#
|
|
+# NOTE: Don't disable this unless you're trying to find bugs in packagekitd
|
|
+# and you want your backend to service every request.
|
|
+#
|
|
+# default=true
|
|
+UseUpdateCache=true
|
|
+
|
|
diff --git a/src/pk-transaction.c b/src/pk-transaction.c
|
|
index 89f4c04..be79ae4 100644
|
|
--- a/src/pk-transaction.c
|
|
+++ b/src/pk-transaction.c
|
|
@@ -2497,7 +2497,8 @@ pk_transaction_get_updates (PkTransaction *transaction, const gchar *filter, DBu
|
|
|
|
/* try and reuse cache */
|
|
updates_cache = pk_cache_get_updates (transaction->priv->cache);
|
|
- if (updates_cache != NULL) {
|
|
+ ret = pk_conf_get_bool (transaction->priv->conf, "UseUpdateCache");
|
|
+ if (ret && updates_cache != NULL) {
|
|
const PkPackageObj *obj;
|
|
const gchar *info_text;
|
|
guint i;
|