[gnome-software] Revert "trivial: Do not allow id-less GsApp's as related or history items"
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Revert "trivial: Do not allow id-less GsApp's as related or history items"
- Date: Wed, 13 Sep 2017 08:24:31 +0000 (UTC)
commit 593cb2cdd72d576fdcdac803d9f3a1424768f3fa
Author: Richard Hughes <richard hughsie com>
Date: Wed Sep 13 09:23:50 2017 +0100
Revert "trivial: Do not allow id-less GsApp's as related or history items"
This reverts commit 3e959a3583aacc2cce2f11c7f2dd136ef9fe9074 as it breaks
PackageKit-based offline updates.
lib/gs-app.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/lib/gs-app.c b/lib/gs-app.c
index 3f95d54..73991db 100644
--- a/lib/gs-app.c
+++ b/lib/gs-app.c
@@ -3100,8 +3100,6 @@ gs_app_add_related (GsApp *app, GsApp *app2)
g_autoptr(GMutexLocker) locker = g_mutex_locker_new (&priv->mutex);
g_return_if_fail (GS_IS_APP (app));
- g_return_if_fail (GS_IS_APP (app2));
- g_return_if_fail (gs_app_get_id (app2) != NULL);
/* if the app is updatable-live and any related app is not then
* degrade to the offline state */
@@ -3156,8 +3154,6 @@ gs_app_add_history (GsApp *app, GsApp *app2)
GsAppPrivate *priv = gs_app_get_instance_private (app);
g_autoptr(GMutexLocker) locker = g_mutex_locker_new (&priv->mutex);
g_return_if_fail (GS_IS_APP (app));
- g_return_if_fail (GS_IS_APP (app2));
- g_return_if_fail (gs_app_get_id (app2) != NULL);
g_ptr_array_add (priv->history, g_object_ref (app2));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]