[packagekit] packagekit: Branch 'master'

Richard Hughes hughsient at kemper.freedesktop.org
Fri Oct 26 11:01:57 PDT 2007


 backends/box/pk-backend-box.c |   16 +++++++++++++++-
 html/pk-faq.html              |    2 +-
 2 files changed, 16 insertions(+), 2 deletions(-)

New commits:
commit a8c8719092c51e29bcc732c514915e3094267341
Author: Grzegorz Dabrowski <gdx at o2.pl>
Date:   Fri Oct 26 19:49:18 2007 +0000

    [box] implemented repo_enable()

diff --git a/backends/box/pk-backend-box.c b/backends/box/pk-backend-box.c
index 085a525..51d114c 100644
--- a/backends/box/pk-backend-box.c
+++ b/backends/box/pk-backend-box.c
@@ -607,6 +607,20 @@ backend_get_repo_list (PkBackend *backend)
 	pk_backend_finished (backend);
 }
 
+/**
+ * backend_repo_enable:
+ */
+static void
+backend_repo_enable (PkBackend *backend, const gchar *rid, gboolean enabled)
+{
+        g_return_if_fail (backend != NULL);
+	
+	box_repos_enable_repo(rid, enabled);
+
+        pk_backend_finished (backend);
+}
+
+
 
 PK_BACKEND_OPTIONS (
 	"Box",					/* description */
@@ -635,7 +649,7 @@ PK_BACKEND_OPTIONS (
 	backend_update_package,			/* update_package */
 	backend_update_system,			/* update_system */
 	backend_get_repo_list,			/* get_repo_list */
-	NULL,					/* repo_enable */
+	backend_repo_enable,			/* repo_enable */
 	NULL					/* repo_set_data */
 );
 
diff --git a/html/pk-faq.html b/html/pk-faq.html
index ceb10d1..138b51c 100644
--- a/html/pk-faq.html
+++ b/html/pk-faq.html
@@ -42,7 +42,7 @@ get-requires      |   X    |     |     |  X  |      |       |   X  |
 get-description   |   X    |  X  |  X  |  X  |      |       |   X  |
 get-update-detail |        |     |     |     |      |       |      |
 get-repo-list     |        |  X  |     |  X  |  X   |       |   X  |
-repo-enable       |        |  X  |     |     |      |       |      |
+repo-enable       |        |  X  |     |  X  |      |       |      |
 repo-set-data     |        |     |     |     |      |       |      |
 cancel-transaction|        |     |     |     |      |       |   X  |
 </pre>



More information about the PackageKit mailing list