[PackageKit-commit] packagekit: Branch 'master' - 3 commits
Richard Hughes
hughsient at kemper.freedesktop.org
Fri Oct 10 06:39:38 PDT 2008
docs/html/img/gpk-log.png |binary
docs/html/img/gpk-service-pack.png |binary
libpackagekit/pk-client.c | 4 ++--
src/pk-interface-transaction.xml | 4 ++--
src/pk-refresh.c | 5 +++++
5 files changed, 9 insertions(+), 4 deletions(-)
New commits:
commit 23273b83903100e3f43af68bc184247a721fabb4
Author: Richard Hughes <richard at hughsie.com>
Date: Fri Oct 10 14:33:18 2008 +0100
trivial: update screenshots
diff --git a/docs/html/img/gpk-log.png b/docs/html/img/gpk-log.png
index 0a62ca5..467359d 100644
Binary files a/docs/html/img/gpk-log.png and b/docs/html/img/gpk-log.png differ
diff --git a/docs/html/img/gpk-service-pack.png b/docs/html/img/gpk-service-pack.png
index 801a003..6829c03 100644
Binary files a/docs/html/img/gpk-service-pack.png and b/docs/html/img/gpk-service-pack.png differ
commit 2d15f3012765f539fbc6bcc8bac4a24f178d3942
Author: Richard Hughes <richard at hughsie.com>
Date: Fri Oct 10 14:33:08 2008 +0100
bugfix: change the documentation to be correct, that the duration of the transaction is measured in milliseconds
diff --git a/libpackagekit/pk-client.c b/libpackagekit/pk-client.c
index efe0758..e66dbd4 100644
--- a/libpackagekit/pk-client.c
+++ b/libpackagekit/pk-client.c
@@ -629,7 +629,7 @@ pk_client_transaction_cb (DBusGProxy *proxy, const gchar *old_tid, const gchar *
g_return_if_fail (PK_IS_CLIENT (client));
role = pk_role_enum_from_text (role_text);
- egg_debug ("emitting transaction %s, %s, %i, %s, %i, %s", old_tid, timespec,
+ egg_debug ("emitting transaction %s, %s, %i, %s, %ims, %s", old_tid, timespec,
succeeded, role_text, duration, data);
g_signal_emit (client, signals [PK_CLIENT_TRANSACTION], 0, old_tid, timespec,
succeeded, role, duration, data);
@@ -3597,7 +3597,7 @@ pk_client_class_init (PkClientClass *klass)
* @timespec: the iso8601 date and time the transaction completed
* @succeeded: if the transaction succeeded
* @role: the #PkRoleEnum of the transaction, e.g. PK_ROLE_ENUM_REFRESH_CACHE
- * @duration: the duration in seconds of the transaction
+ * @duration: the duration in milliseconds of the transaction
* @data: the data of the transaction, typiically a list of package_id's
*
* The ::transaction is emitted when the method GetOldTransactions() is
diff --git a/src/pk-interface-transaction.xml b/src/pk-interface-transaction.xml
index 78c0aaf..2448e57 100644
--- a/src/pk-interface-transaction.xml
+++ b/src/pk-interface-transaction.xml
@@ -1549,7 +1549,7 @@
<doc:doc>
<doc:summary>
<doc:para>
- The amount of time in ms that the transaction ran for.
+ The amount of time in milliseconds that the transaction ran for.
</doc:para>
</doc:summary>
</doc:doc>
@@ -1994,7 +1994,7 @@
<doc:doc>
<doc:summary>
<doc:para>
- The duration of the transaction in seconds.
+ The duration of the transaction in milliseconds.
</doc:para>
</doc:summary>
</doc:doc>
commit e08688008eac565766ae0828d3fdd1624302ef10
Author: Scott Reeves <sreeves at novell.com>
Date: Thu Oct 9 15:53:22 2008 -0600
fix daemon to set store values for threaded backends
diff --git a/src/pk-refresh.c b/src/pk-refresh.c
index ab214bc..0c14b67 100644
--- a/src/pk-refresh.c
+++ b/src/pk-refresh.c
@@ -219,10 +219,14 @@ pk_refresh_import_desktop_files_get_package (PkRefresh *refresh, const gchar *fi
guint size;
gchar *name = NULL;
const PkPackageObj *obj;
+ PkStore *store;
/* use PK to find the correct package */
pk_package_list_clear (refresh->priv->list);
pk_backend_reset (refresh->priv->backend);
+ store = pk_backend_get_store (refresh->priv->backend);
+ pk_store_set_uint (store, "filters", pk_bitfield_value (PK_FILTER_ENUM_INSTALLED));
+ pk_store_set_string (store, "search", filename);
refresh->priv->backend->desc->search_file (refresh->priv->backend, pk_bitfield_value (PK_FILTER_ENUM_INSTALLED), filename);
/* wait for finished */
@@ -465,6 +469,7 @@ pk_refresh_update_package_list (PkRefresh *refresh)
/* get the new package list */
pk_backend_reset (refresh->priv->backend);
+ pk_store_set_uint (pk_backend_get_store (refresh->priv->backend), "filters", pk_bitfield_value (PK_FILTER_ENUM_NONE));
refresh->priv->backend->desc->get_packages (refresh->priv->backend, PK_FILTER_ENUM_NONE);
/* wait for finished */
More information about the PackageKit-commit
mailing list