[packagekit] packagekit: Branch 'master' - 2 commits

Richard Hughes hughsient at kemper.freedesktop.org
Fri Oct 19 11:31:40 PDT 2007


 backends/BACKENDS                     |    9 +++++++--
 backends/box/helpers/Makefile.am      |    1 +
 backends/box/helpers/update-system.sh |   14 ++++++++++++++
 backends/box/pk-backend-box.c         |   12 +++++++++++-
 4 files changed, 33 insertions(+), 3 deletions(-)

New commits:
commit 11ebf6952d01945a00a7f59ca275b9153ef90ea4
Author: Grzegorz Dabrowski <gdx at o2.pl>
Date:   Fri Oct 19 20:15:33 2007 +0000

    updated information about backends - added methods: get-update-detail, get-repo-list, repo-enable, repo-set-data, cancel-transaction, update-package

diff --git a/backends/BACKENDS b/backends/BACKENDS
index da20006..6df148a 100644
--- a/backends/BACKENDS
+++ b/backends/BACKENDS
@@ -5,16 +5,21 @@ Current status of the backends
 resolve           |        |  X  |     |  X  |      |
 refresh-cache     |   X    |  X  |  X  |  X  |      |
 get-updates       |   X    |  X  |     |  X  |      |
-update-system     |   X    |  X  |     |     |      |
+update-system     |   X    |  X  |     |  X  |      |
 search-name       |   X    |  X  |  X  |  X  |  X   |
 search-details    |        |  X  |  X  |  X  |      |
 search-file       |        |  X  |     |  X  |      |
 search-group      |        |     |     |     |      |
 install-package   |   X    |  X  |     |  X  |  X   |
 install-file      |        |     |     |  X  |      |
-remove            |   X    |  X  |     |  X  |  X   |
+remove-package    |   X    |  X  |     |  X  |  X   |
+update-package    |        |     |     |  X  |      |
 get-depends       |        |  X  |     |     |      |
 get-requires      |   X    |     |     |     |      |
 get-description   |   X    |  X  |  X  |  X  |      |
 get-update-detail |        |     |     |     |      |
+get-repo-list     |        |     |     |     |      |
+repo-enable       |        |     |     |     |      |
+repo-set-data     |        |     |     |     |      |
+cancel-transaction|        |     |     |     |      |
 
commit 00f2aeb4fecae4631ef6d148fe403db1d537cd2c
Author: Grzegorz Dabrowski <gdx at o2.pl>
Date:   Fri Oct 19 19:49:00 2007 +0000

    [box] added simple implementation of update-system

diff --git a/backends/box/helpers/Makefile.am b/backends/box/helpers/Makefile.am
index 70f60ee..80d5fd3 100644
--- a/backends/box/helpers/Makefile.am
+++ b/backends/box/helpers/Makefile.am
@@ -9,6 +9,7 @@ dist_helper_DATA = 			\
 	refresh-cache.sh		\
 	remove-package.sh		\
 	update-package.sh		\
+	update-system.sh		\
 	$(NULL)
 
 install-data-hook:
diff --git a/backends/box/helpers/update-system.sh b/backends/box/helpers/update-system.sh
new file mode 100644
index 0000000..bb4700e
--- /dev/null
+++ b/backends/box/helpers/update-system.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Copyright (C) 2007 Grzegorz Dabrowski <gdx at o2.pl>
+#
+# Licensed under the GNU General Public License Version 2
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+echo "no-percentage-updates" > /dev/stderr
+echo "status	update" > /dev/stderr
+box --upgrade-dist 2>&1 >/dev/null
diff --git a/backends/box/pk-backend-box.c b/backends/box/pk-backend-box.c
index c376277..9a4985b 100644
--- a/backends/box/pk-backend-box.c
+++ b/backends/box/pk-backend-box.c
@@ -473,6 +473,16 @@ backend_update_package (PkBackend *backend, const gchar *package_id)
 	pk_backend_spawn_helper (backend, "update-package.sh", package_id, NULL);
 }
 
+/**
+ * backend_update_system:
+ */
+static void
+backend_update_system (PkBackend *backend)
+{
+	g_return_if_fail (backend != NULL);
+	pk_backend_spawn_helper (backend, "update-system.sh", NULL);
+}
+
 
 PK_BACKEND_OPTIONS (
 	"Box",					/* description */
@@ -499,7 +509,7 @@ PK_BACKEND_OPTIONS (
 	NULL,					/* search_group */
 	backend_search_name,			/* search_name */
 	backend_update_package,			/* update_package */
-	NULL,					/* update_system */
+	backend_update_system,			/* update_system */
 	NULL,					/* get_repo_list */
 	NULL,					/* repo_enable */
 	NULL					/* repo_set_data */



More information about the PackageKit mailing list