[packagekit] packagekit: Branch 'master'
Richard Hughes
hughsient at kemper.freedesktop.org
Sun Jan 27 04:39:42 PST 2008
src/pk-engine.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 3ffa0f089ca809a56a3771d6c14c46b08f75fafc
Author: Richard Hughes <richard at hughsie.com>
Date: Sat Jan 26 17:04:59 2008 +0000
only commit if we haven't emulated the backend
diff --git a/src/pk-engine.c b/src/pk-engine.c
index 2c8c5eb..a69e16f 100644
--- a/src/pk-engine.c
+++ b/src/pk-engine.c
@@ -647,7 +647,8 @@ pk_engine_caller_active_changed_cb (PkRunner *runner, gboolean is_active, PkEngi
c_tid = pk_runner_get_tid (runner);
if (c_tid == NULL) {
- pk_warning ("could not get current tid from runner");
+ /* we might get this if we emulated a backend */
+ pk_debug ("could not get current tid from runner");
return;
}
@@ -919,7 +920,6 @@ pk_engine_get_updates (PkEngine *engine, const gchar *tid, DBusGMethodInvocation
dbus_g_method_return_error (context, error);
return;
}
- pk_engine_item_commit (engine, item);
/* try and reuse cache */
if (engine->priv->updates_cache != NULL) {
@@ -950,6 +950,9 @@ pk_engine_get_updates (PkEngine *engine, const gchar *tid, DBusGMethodInvocation
return;
}
+ /* only commit if we haven't emulated */
+ pk_engine_item_commit (engine, item);
+
dbus_g_method_return (context);
}
More information about the PackageKit
mailing list