[packagekit] packagekit: Branch 'master' - 13 commits
Richard Hughes
hughsient at kemper.freedesktop.org
Wed Feb 13 14:34:33 PST 2008
Makefile.am | 2
backends/apt/helpers/aptBackend.py | 20 ++++
backends/apt/helpers/get-update-detail.py | 18 +++
backends/apt/helpers/get-updates.py | 17 +++
backends/apt/pk-apt-search-plain.c | 16 ++-
backends/apt/pk-backend-apt.c | 17 ++-
backends/conary/helpers/Makefile.am | 1
backends/conary/helpers/get-update-detail.py | 18 +++
backends/dummy/pk-backend-dummy.c | 2
backends/test/helpers/PackageKitDbusTest.py | 4
backends/test/pk-backend-test-dbus.c | 9 -
backends/test/pk-backend-test-spawn.c | 2
backends/test/pk-backend-test-thread.c | 2
backends/yum/pk-backend-yum.c | 2
backends/yum2/helpers/yumDBUSBackend.py | 10 +-
backends/yum2/pk-backend-yum2.c | 8 -
client/pk-console.c | 2
client/pk-monitor.c | 2
configure.ac | 4
data/org.freedesktop.PackageKitTestBackend.conf.in | 8 -
data/org.freedesktop.PackageKitYumBackend.conf.in | 8 -
docs/html/pk-authors.html | 17 +++
docs/html/pk-download.html | 4
docs/html/pk-faq.html | 2
libpackagekit/pk-client.c | 2
libpackagekit/pk-client.h | 2
libpackagekit/pk-common.c | 4
libpackagekit/pk-common.h | 2
libpackagekit/pk-debug.c | 2
libpackagekit/pk-debug.h | 2
libpackagekit/pk-enum-list.c | 2
libpackagekit/pk-enum.c | 4
libpackagekit/pk-enum.h | 2
libpackagekit/pk-extra-obj.c | 2
libpackagekit/pk-extra-obj.h | 2
libpackagekit/pk-extra.h | 2
libpackagekit/pk-package-id.c | 2
libpackagekit/pk-package-id.h | 2
libpackagekit/pk-package-list.c | 2
src/pk-backend-dbus.c | 103 ++++++++++++---------
src/pk-backend-dbus.h | 22 +++-
src/pk-backend-internal.h | 2
src/pk-backend-spawn.c | 2
src/pk-backend-spawn.h | 2
src/pk-backend-thread.c | 2
src/pk-backend-thread.h | 2
src/pk-backend.h | 2
src/pk-conf.c | 2
src/pk-engine.c | 2
src/pk-engine.h | 2
src/pk-inhibit.c | 2
src/pk-main.c | 2
src/pk-runner.c | 2
src/pk-runner.h | 2
src/pk-security-dummy.c | 2
src/pk-security-polkit.c | 2
src/pk-spawn.c | 2
src/pk-spawn.h | 2
src/pk-transaction-id.c | 2
src/pk-transaction-id.h | 2
60 files changed, 262 insertions(+), 130 deletions(-)
New commits:
commit cfea1e9e6d2711de71c8b658da065ee09e685d7f
Author: Richard Hughes <richard at hughsie.com>
Date: Wed Feb 13 22:33:32 2008 +0000
do the distcheck with --with-security-framework=dummy
diff --git a/Makefile.am b/Makefile.am
index 2794ffc..6e30c65 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -87,5 +87,5 @@ MAINTAINERCLEANFILES = \
aclocal.m4 \
$(NULL)
-DISTCHECK_CONFIGURE_FLAGS = --disable-gcov --enable-gtk-doc
+DISTCHECK_CONFIGURE_FLAGS = --disable-gcov --enable-gtk-doc --with-security-framework=dummy
commit 9919fe509fcdabe04ea070384c37e02060a348d3
Author: Richard Hughes <richard at hughsie.com>
Date: Wed Feb 13 22:07:28 2008 +0000
more en_UK to en_US fixes
diff --git a/libpackagekit/pk-common.c b/libpackagekit/pk-common.c
index e5395c2..9f0558e 100644
--- a/libpackagekit/pk-common.c
+++ b/libpackagekit/pk-common.c
@@ -452,7 +452,7 @@ pk_strcmp_sections (const gchar *id1, const gchar *id2, guint parts, guint compa
return FALSE;
}
if (compare == parts) {
- pk_debug ("optimise to strcmp");
+ pk_debug ("optimize to strcmp");
return pk_strequal (id1, id2);
}
diff --git a/src/pk-conf.c b/src/pk-conf.c
index 94d0fce..bc9109b 100644
--- a/src/pk-conf.c
+++ b/src/pk-conf.c
@@ -111,7 +111,7 @@ pk_conf_class_init (PkConfClass *klass)
/**
* pk_conf_init:
*
- * initialises the conf class. NOTE: We expect conf objects
+ * initializes the conf class. NOTE: We expect conf objects
* to *NOT* be removed or added during the session.
* We only control the first conf object if there are more than one.
**/
diff --git a/src/pk-inhibit.c b/src/pk-inhibit.c
index dd3a05c..99764b1 100644
--- a/src/pk-inhibit.c
+++ b/src/pk-inhibit.c
@@ -241,7 +241,7 @@ pk_inhibit_class_init (PkInhibitClass *klass)
/**
* pk_inhibit_init:
*
- * initialises the inhibit class. NOTE: We expect inhibit objects
+ * initializes the inhibit class. NOTE: We expect inhibit objects
* to *NOT* be removed or added during the session.
* We only control the first inhibit object if there are more than one.
**/
diff --git a/src/pk-security-dummy.c b/src/pk-security-dummy.c
index ff8d0d6..8aa4288 100644
--- a/src/pk-security-dummy.c
+++ b/src/pk-security-dummy.c
@@ -86,7 +86,7 @@ pk_security_class_init (PkSecurityClass *klass)
/**
* pk_security_init:
*
- * initialises the security class. NOTE: We expect security objects
+ * initializes the security class. NOTE: We expect security objects
* to *NOT* be removed or added during the session.
* We only control the first security object if there are more than one.
**/
diff --git a/src/pk-security-polkit.c b/src/pk-security-polkit.c
index 27c4442..c540ce6 100644
--- a/src/pk-security-polkit.c
+++ b/src/pk-security-polkit.c
@@ -188,7 +188,7 @@ pk_security_class_init (PkSecurityClass *klass)
/**
* pk_security_init:
*
- * initialises the security class. NOTE: We expect security objects
+ * initializes the security class. NOTE: We expect security objects
* to *NOT* be removed or added during the session.
* We only control the first security object if there are more than one.
**/
commit 7082fa2edbfa324213b15b94cb1425384eab0712
Author: Richard Hughes <richard at hughsie.com>
Date: Wed Feb 13 21:57:48 2008 +0000
move changes from 'licence' to 'license'
diff --git a/backends/test/helpers/PackageKitDbusTest.py b/backends/test/helpers/PackageKitDbusTest.py
index 0c33fbd..ec87dbc 100755
--- a/backends/test/helpers/PackageKitDbusTest.py
+++ b/backends/test/helpers/PackageKitDbusTest.py
@@ -90,8 +90,8 @@ class PackageKitTestBackendService(dbus.service.Object):
@dbus.service.signal(dbus_interface=PACKAGEKIT_DBUS_INTERFACE,
signature='ssssst')
- def Description(self, package_id, licence, group, detail, url, size):
- print "Description (%s, %s, %s, %s, %s, %u)" % (package_id, licence, group, detail, url, size)
+ def Description(self, package_id, license, group, detail, url, size):
+ print "Description (%s, %s, %s, %s, %s, %u)" % (package_id, license, group, detail, url, size)
@dbus.service.signal(dbus_interface=PACKAGEKIT_DBUS_INTERFACE,
signature='ss')
diff --git a/backends/yum2/helpers/yumDBUSBackend.py b/backends/yum2/helpers/yumDBUSBackend.py
index 26a3a99..99e4f8d 100755
--- a/backends/yum2/helpers/yumDBUSBackend.py
+++ b/backends/yum2/helpers/yumDBUSBackend.py
@@ -284,8 +284,8 @@ class PackageKitYumBackend(PackageKitBaseBackend):
@dbus.service.signal(dbus_interface=PACKAGEKIT_DBUS_INTERFACE,
signature='sssssu')
- def Description(self, package_id, licence, group, detail, url, size):
- print "Description (%s, %s, %s, %s, %s, %u)" % (package_id, licence, group, detail, url, size)
+ def Description(self, package_id, license, group, detail, url, size):
+ print "Description (%s, %s, %s, %s, %s, %u)" % (package_id, license, group, detail, url, size)
def _show_description(self,id,license,group,desc,url,bytes):
'''
diff --git a/libpackagekit/pk-enum.c b/libpackagekit/pk-enum.c
index 69d81f9..585f1aa 100644
--- a/libpackagekit/pk-enum.c
+++ b/libpackagekit/pk-enum.c
@@ -753,7 +753,7 @@ pk_filter_enum_to_text (PkFilterEnum filter)
/**
* pk_license_enum_from_text:
- * @licence: Text describing the enumerated type
+ * @license: Text describing the enumerated type
*
* Converts a text enumerated type to its unsigned integer representation
*
commit 354692622c67175aa90fcf2a7c955263e7679a26
Author: Richard Hughes <richard at hughsie.com>
Date: Wed Feb 13 21:50:39 2008 +0000
update my copyright in the files i've touched recently
diff --git a/backends/dummy/pk-backend-dummy.c b/backends/dummy/pk-backend-dummy.c
index 96e408e..8e6ad7d 100644
--- a/backends/dummy/pk-backend-dummy.c
+++ b/backends/dummy/pk-backend-dummy.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/backends/test/pk-backend-test-dbus.c b/backends/test/pk-backend-test-dbus.c
index 2d0c4c7..0d7b532 100644
--- a/backends/test/pk-backend-test-dbus.c
+++ b/backends/test/pk-backend-test-dbus.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/backends/test/pk-backend-test-spawn.c b/backends/test/pk-backend-test-spawn.c
index 9c26063..b7e10ab 100644
--- a/backends/test/pk-backend-test-spawn.c
+++ b/backends/test/pk-backend-test-spawn.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/backends/test/pk-backend-test-thread.c b/backends/test/pk-backend-test-thread.c
index f173efc..f6ec03c 100644
--- a/backends/test/pk-backend-test-thread.c
+++ b/backends/test/pk-backend-test-thread.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/backends/yum/pk-backend-yum.c b/backends/yum/pk-backend-yum.c
index 70512de..c47b415 100644
--- a/backends/yum/pk-backend-yum.c
+++ b/backends/yum/pk-backend-yum.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/backends/yum2/pk-backend-yum2.c b/backends/yum2/pk-backend-yum2.c
index 34284f5..b0f2e62 100644
--- a/backends/yum2/pk-backend-yum2.c
+++ b/backends/yum2/pk-backend-yum2.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/client/pk-console.c b/client/pk-console.c
index 07051e7..3ae61a2 100644
--- a/client/pk-console.c
+++ b/client/pk-console.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/client/pk-monitor.c b/client/pk-monitor.c
index 5295e81..bf15d0f 100644
--- a/client/pk-monitor.c
+++ b/client/pk-monitor.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/libpackagekit/pk-client.c b/libpackagekit/pk-client.c
index 3a00a13..bfe9ae3 100644
--- a/libpackagekit/pk-client.c
+++ b/libpackagekit/pk-client.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/libpackagekit/pk-client.h b/libpackagekit/pk-client.h
index 5a8c725..ce74548 100644
--- a/libpackagekit/pk-client.h
+++ b/libpackagekit/pk-client.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/libpackagekit/pk-common.c b/libpackagekit/pk-common.c
index 90a80af..e5395c2 100644
--- a/libpackagekit/pk-common.c
+++ b/libpackagekit/pk-common.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/libpackagekit/pk-common.h b/libpackagekit/pk-common.h
index de4cd5a..6433f6b 100644
--- a/libpackagekit/pk-common.h
+++ b/libpackagekit/pk-common.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/libpackagekit/pk-debug.c b/libpackagekit/pk-debug.c
index 36bd9cb..aeac9ad 100644
--- a/libpackagekit/pk-debug.c
+++ b/libpackagekit/pk-debug.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/libpackagekit/pk-debug.h b/libpackagekit/pk-debug.h
index 4846aaa..ad5be4b 100644
--- a/libpackagekit/pk-debug.h
+++ b/libpackagekit/pk-debug.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/libpackagekit/pk-enum-list.c b/libpackagekit/pk-enum-list.c
index 91343c5..9e41714 100644
--- a/libpackagekit/pk-enum-list.c
+++ b/libpackagekit/pk-enum-list.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/libpackagekit/pk-enum.c b/libpackagekit/pk-enum.c
index c78da34..69d81f9 100644
--- a/libpackagekit/pk-enum.c
+++ b/libpackagekit/pk-enum.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/libpackagekit/pk-enum.h b/libpackagekit/pk-enum.h
index 57d5cdd..9839d33 100644
--- a/libpackagekit/pk-enum.h
+++ b/libpackagekit/pk-enum.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/libpackagekit/pk-extra-obj.c b/libpackagekit/pk-extra-obj.c
index 8333534..ba17253 100644
--- a/libpackagekit/pk-extra-obj.c
+++ b/libpackagekit/pk-extra-obj.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/libpackagekit/pk-extra-obj.h b/libpackagekit/pk-extra-obj.h
index 0a5a43f..ad21f5d 100644
--- a/libpackagekit/pk-extra-obj.h
+++ b/libpackagekit/pk-extra-obj.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/libpackagekit/pk-extra.h b/libpackagekit/pk-extra.h
index d244578..c93daee 100644
--- a/libpackagekit/pk-extra.h
+++ b/libpackagekit/pk-extra.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2008 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2008-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/libpackagekit/pk-package-id.c b/libpackagekit/pk-package-id.c
index 8f97d97..947c0cc 100644
--- a/libpackagekit/pk-package-id.c
+++ b/libpackagekit/pk-package-id.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/libpackagekit/pk-package-id.h b/libpackagekit/pk-package-id.h
index 33a687b..f5e0686 100644
--- a/libpackagekit/pk-package-id.h
+++ b/libpackagekit/pk-package-id.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/libpackagekit/pk-package-list.c b/libpackagekit/pk-package-list.c
index c7fe014..bf8b3bd 100644
--- a/libpackagekit/pk-package-list.c
+++ b/libpackagekit/pk-package-list.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/src/pk-backend-internal.h b/src/pk-backend-internal.h
index daef679..644ebef 100644
--- a/src/pk-backend-internal.h
+++ b/src/pk-backend-internal.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/src/pk-backend-spawn.c b/src/pk-backend-spawn.c
index 1c1f22c..80455e1 100644
--- a/src/pk-backend-spawn.c
+++ b/src/pk-backend-spawn.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/src/pk-backend-spawn.h b/src/pk-backend-spawn.h
index 691923e..bbfde70 100644
--- a/src/pk-backend-spawn.h
+++ b/src/pk-backend-spawn.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/src/pk-backend-thread.c b/src/pk-backend-thread.c
index 518ff05..447904a 100644
--- a/src/pk-backend-thread.c
+++ b/src/pk-backend-thread.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/src/pk-backend-thread.h b/src/pk-backend-thread.h
index 08f2189..d6154d6 100644
--- a/src/pk-backend-thread.h
+++ b/src/pk-backend-thread.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/src/pk-backend.h b/src/pk-backend.h
index 83e1877..11cfefa 100644
--- a/src/pk-backend.h
+++ b/src/pk-backend.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/src/pk-engine.c b/src/pk-engine.c
index 9e8f744..3faca0a 100644
--- a/src/pk-engine.c
+++ b/src/pk-engine.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/src/pk-engine.h b/src/pk-engine.h
index cb984b2..c57da71 100644
--- a/src/pk-engine.h
+++ b/src/pk-engine.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/src/pk-main.c b/src/pk-main.c
index bd4dcb8..5b6693f 100644
--- a/src/pk-main.c
+++ b/src/pk-main.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/src/pk-runner.c b/src/pk-runner.c
index 9cbe68e..b838599 100644
--- a/src/pk-runner.c
+++ b/src/pk-runner.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/src/pk-runner.h b/src/pk-runner.h
index 7d8e503..fe09c6e 100644
--- a/src/pk-runner.h
+++ b/src/pk-runner.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/src/pk-spawn.c b/src/pk-spawn.c
index 2cbb7c0..d556bec 100644
--- a/src/pk-spawn.c
+++ b/src/pk-spawn.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/src/pk-spawn.h b/src/pk-spawn.h
index f2770e0..02f1d12 100644
--- a/src/pk-spawn.h
+++ b/src/pk-spawn.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/src/pk-transaction-id.c b/src/pk-transaction-id.c
index 625f854..567f54a 100644
--- a/src/pk-transaction-id.c
+++ b/src/pk-transaction-id.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
diff --git a/src/pk-transaction-id.h b/src/pk-transaction-id.h
index 5e83d44..9389270 100644
--- a/src/pk-transaction-id.h
+++ b/src/pk-transaction-id.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
commit 3b8bddf17bcd754898985b4b43534a85670ed392
Author: Michael Vogt <mvo at ubuntu.com>
Date: Wed Feb 13 22:45:33 2008 +0100
* backends/apt/helpers/aptBackend.py:
- add get_updates() and get_update_detail()
* backends/apt/helpers/get-update-detail.py,
backends/apt/helpers/get-updates.py:
- add helper for get-update-detail.py and get-updates.py
* backends/apt/pk-apt-search-plain.c, backends/apt/pk-backend-apt.c:
- make it build again
* backends/apt/pk-backend-apt.c:
- set spawn name to "apt"
- add backend_get_update_detail()
diff --git a/backends/apt/helpers/aptBackend.py b/backends/apt/helpers/aptBackend.py
index 2c1da14..4af6845 100644
--- a/backends/apt/helpers/aptBackend.py
+++ b/backends/apt/helpers/aptBackend.py
@@ -426,6 +426,26 @@ class PackageKitAptBackend(PackageKitBaseBackend):
except IOError,e:
self.error(ERROR_INTERNAL_ERROR, "Problem while trying to save repo settings to %s: %s"%(e.filename,e.strerror))
+ def get_updates(self):
+ self._apt_cache.upgrade(False)
+ for pkg in self._apt_cache.getChanges():
+ self._emit_package(Package(self, pkg))
+
+ def get_update_detail(self, package):
+ self.allow_cancel(True)
+ self.percentage(None)
+ self.status(STATUS_INFO)
+ name, version, arch, data = self.get_package_from_id(package)
+ update = ""
+ obsolete = ""
+ cve_url = ""
+ bz_url = ""
+ vendor_url = ""
+ reboot = "none"
+ desc = self._apt_cache[name].description
+ self.update_detail(package,update,obsolete,vendor_url,bz_url,cve_url,reboot,desc)
+
+
def install_file (self, inst_file):
'''
Implement the {backend}-install_file functionality
diff --git a/backends/apt/helpers/get-update-detail.py b/backends/apt/helpers/get-update-detail.py
new file mode 100755
index 0000000..5524d9a
--- /dev/null
+++ b/backends/apt/helpers/get-update-detail.py
@@ -0,0 +1,18 @@
+#!/usr/bin/python
+#
+# Copyright (C) 2008 Michael Vogt <mvo at ubuntu.com>
+#
+# 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.
+
+import sys
+
+from aptBackend import PackageKitAptBackend
+package=sys.argv[1]
+backend = PackageKitAptBackend(sys.argv[2:])
+backend.get_update_detail(package)
+sys.exit(0)
diff --git a/backends/apt/helpers/get-updates.py b/backends/apt/helpers/get-updates.py
new file mode 100755
index 0000000..5c9d26e
--- /dev/null
+++ b/backends/apt/helpers/get-updates.py
@@ -0,0 +1,17 @@
+#!/usr/bin/python
+#
+# Copyright (C) 2008 Michael Vogt <mvo at ubuntu.com>
+#
+# 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.
+
+import sys
+from aptBackend import PackageKitAptBackend
+
+backend = PackageKitAptBackend(sys.argv[1:])
+backend.get_updates()
+sys.exit(0)
diff --git a/backends/apt/pk-apt-search-plain.c b/backends/apt/pk-apt-search-plain.c
index 155fdb8..71792f5 100644
--- a/backends/apt/pk-apt-search-plain.c
+++ b/backends/apt/pk-apt-search-plain.c
@@ -23,7 +23,9 @@
#include <glib.h>
#include <string.h>
#include <pk-backend.h>
-#include <pk-backend-python.h>
+#include <pk-backend-spawn.h>
+
+extern PkBackendSpawn *spawn;
/**
* backend_get_groups:
@@ -66,7 +68,8 @@ backend_get_filters (PkBackend *backend, PkEnumList *elist)
void
backend_get_description (PkBackend *backend, const gchar *package_id)
{
- pk_backend_python_get_description(backend,package_id);
+ g_return_if_fail (backend != NULL);
+ pk_backend_spawn_helper (spawn, "get-description.py", package_id, NULL);
}
/**
@@ -76,7 +79,8 @@ backend_get_description (PkBackend *backend, const gchar *package_id)
void
backend_search_details (PkBackend *backend, const gchar *filter, const gchar *search)
{
- pk_backend_python_search_details(backend,filter,search);
+ g_return_if_fail (backend != NULL);
+ pk_backend_spawn_helper (spawn, "search-details.py", filter, search, NULL);
}
/**
@@ -85,7 +89,8 @@ backend_search_details (PkBackend *backend, const gchar *filter, const gchar *se
void
backend_search_name (PkBackend *backend, const gchar *filter, const gchar *search)
{
- pk_backend_python_search_name(backend,filter,search);
+ g_return_if_fail (backend != NULL);
+ pk_backend_spawn_helper (spawn, "search-name.py", filter, search, NULL);
}
/**
@@ -94,7 +99,8 @@ backend_search_name (PkBackend *backend, const gchar *filter, const gchar *searc
void
backend_search_group (PkBackend *backend, const gchar *filter, const gchar *search)
{
- pk_backend_python_search_group(backend,filter,search);
+ g_return_if_fail (backend != NULL);
+ pk_backend_spawn_helper (spawn, "search-group.py", filter, search, NULL);
}
/* don't need to do any setup/finalize in the plain search mode */
diff --git a/backends/apt/pk-backend-apt.c b/backends/apt/pk-backend-apt.c
index a477137..c5710c5 100644
--- a/backends/apt/pk-backend-apt.c
+++ b/backends/apt/pk-backend-apt.c
@@ -29,7 +29,7 @@
#include "pk-apt-search.h"
#include "config.h"
-static PkBackendSpawn *spawn;
+PkBackendSpawn *spawn;
static PkNetwork *network;
/**
@@ -43,7 +43,7 @@ backend_initalize (PkBackend *backend)
pk_debug ("FILTER: initalize");
network = pk_network_new ();
spawn = pk_backend_spawn_new ();
- pk_backend_spawn_set_name (spawn, "yum");
+ pk_backend_spawn_set_name (spawn, "apt");
backend_init_search (backend);
}
@@ -131,6 +131,17 @@ backend_get_updates (PkBackend *backend)
}
/**
+ * backend_get_update_detail:
+ */
+static void
+backend_get_update_detail (PkBackend *backend, const gchar *package_id)
+{
+ g_return_if_fail (backend != NULL);
+ g_return_if_fail (spawn != NULL);
+ pk_backend_spawn_helper (spawn, "get-update-detail.py", package_id, NULL);
+}
+
+/**
* backend_install_package:
*/
static void
@@ -243,7 +254,7 @@ PK_BACKEND_OPTIONS (
backend_get_description, /* get_description */
NULL, /* get_files */
NULL, /* get_requires */
- NULL, /* get_update_detail */
+ backend_get_update_detail, /* get_update_detail */
backend_get_updates, /* get_updates */
backend_install_package, /* install_package */
NULL, /* install_file */
commit a744d5e6d3a8696d39e7eacefc38c923c058a418
Author: Richard Hughes <richard at hughsie.com>
Date: Wed Feb 13 21:38:09 2008 +0000
fix some spacing, and add some asserts
diff --git a/src/pk-backend-dbus.c b/src/pk-backend-dbus.c
index a2fffb4..6079d58 100644
--- a/src/pk-backend-dbus.c
+++ b/src/pk-backend-dbus.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
@@ -78,6 +78,8 @@ pk_backend_dbus_proxy_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, v
GError *error = NULL;
PkBackendDbus *backend_dbus = user_data;
+ g_return_if_fail (backend_dbus != NULL);
+
/* we're done */
dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_INVALID);
pk_debug ("dbus call finished %p", call);
@@ -307,6 +309,7 @@ pk_backend_dbus_set_name (PkBackendDbus *backend_dbus, const gchar *service)
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (service != NULL, FALSE);
if (backend_dbus->priv->proxy != NULL) {
pk_warning ("need to unref old one -- is this logically allowed?");
@@ -397,8 +400,6 @@ pk_backend_dbus_set_name (PkBackendDbus *backend_dbus, const gchar *service)
backend_dbus, NULL,
G_TYPE_INVALID, G_TYPE_INVALID);
return TRUE;
-
- return TRUE;
}
/**
@@ -487,7 +488,7 @@ pk_backend_dbus_refresh_cache (PkBackendDbus *backend_dbus, gboolean force)
pk_backend_dbus_proxy_async_callback,
backend_dbus, NULL,
G_TYPE_BOOLEAN, force,
- G_TYPE_INVALID, G_TYPE_INVALID);
+ G_TYPE_INVALID, G_TYPE_INVALID);
/* unlock the backend if we failed */
if (call == NULL) {
@@ -533,6 +534,7 @@ pk_backend_dbus_repo_enable (PkBackendDbus *backend_dbus, const gchar *rid, gboo
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (rid != NULL, FALSE);
/* lock the backend */
pk_backend_dbus_lock (backend_dbus);
@@ -542,8 +544,8 @@ pk_backend_dbus_repo_enable (PkBackendDbus *backend_dbus, const gchar *rid, gboo
pk_backend_dbus_proxy_async_callback,
backend_dbus, NULL,
G_TYPE_STRING, rid,
- G_TYPE_STRING, enabled,
- G_TYPE_INVALID, G_TYPE_INVALID);
+ G_TYPE_STRING, enabled,
+ G_TYPE_INVALID, G_TYPE_INVALID);
/* unlock the backend if we failed */
if (call == NULL) {
@@ -557,11 +559,15 @@ pk_backend_dbus_repo_enable (PkBackendDbus *backend_dbus, const gchar *rid, gboo
* pk_backend_dbus_repo_set_data:
**/
gboolean
-pk_backend_dbus_repo_set_data (PkBackendDbus *backend_dbus, const gchar *rid, const gchar *parameter, const gchar *value)
+pk_backend_dbus_repo_set_data (PkBackendDbus *backend_dbus, const gchar *rid,
+ const gchar *parameter, const gchar *value)
{
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (rid != NULL, FALSE);
+ g_return_val_if_fail (parameter != NULL, FALSE);
+ g_return_val_if_fail (value != NULL, FALSE);
/* lock the backend */
pk_backend_dbus_lock (backend_dbus);
@@ -571,9 +577,9 @@ pk_backend_dbus_repo_set_data (PkBackendDbus *backend_dbus, const gchar *rid, co
pk_backend_dbus_proxy_async_callback,
backend_dbus, NULL,
G_TYPE_STRING, rid,
- G_TYPE_STRING, parameter,
- G_TYPE_STRING, value,
- G_TYPE_INVALID, G_TYPE_INVALID);
+ G_TYPE_STRING, parameter,
+ G_TYPE_STRING, value,
+ G_TYPE_INVALID, G_TYPE_INVALID);
/* unlock the backend if we failed */
if (call == NULL) {
@@ -592,6 +598,8 @@ pk_backend_dbus_resolve (PkBackendDbus *backend_dbus, const gchar *filter, const
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (filter != NULL, FALSE);
+ g_return_val_if_fail (package != NULL, FALSE);
/* lock the backend */
pk_backend_dbus_lock (backend_dbus);
@@ -601,8 +609,8 @@ pk_backend_dbus_resolve (PkBackendDbus *backend_dbus, const gchar *filter, const
pk_backend_dbus_proxy_async_callback,
backend_dbus, NULL,
G_TYPE_STRING, filter,
- G_TYPE_STRING, package,
- G_TYPE_INVALID, G_TYPE_INVALID);
+ G_TYPE_STRING, package,
+ G_TYPE_INVALID, G_TYPE_INVALID);
/* unlock the backend if we failed */
if (call == NULL) {
@@ -621,6 +629,7 @@ pk_backend_dbus_rollback (PkBackendDbus *backend_dbus, const gchar *transaction_
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (transaction_id != NULL, FALSE);
/* lock the backend */
pk_backend_dbus_lock (backend_dbus);
@@ -630,7 +639,7 @@ pk_backend_dbus_rollback (PkBackendDbus *backend_dbus, const gchar *transaction_
pk_backend_dbus_proxy_async_callback,
backend_dbus, NULL,
G_TYPE_STRING, transaction_id,
- G_TYPE_INVALID, G_TYPE_INVALID);
+ G_TYPE_INVALID, G_TYPE_INVALID);
/* unlock the backend if we failed */
if (call == NULL) {
@@ -649,6 +658,8 @@ pk_backend_dbus_search_name (PkBackendDbus *backend_dbus, const gchar *filter, c
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (filter != NULL, FALSE);
+ g_return_val_if_fail (search != NULL, FALSE);
/* lock the backend */
pk_backend_dbus_lock (backend_dbus);
@@ -678,6 +689,8 @@ pk_backend_dbus_search_details (PkBackendDbus *backend_dbus, const gchar *filter
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (filter != NULL, FALSE);
+ g_return_val_if_fail (search != NULL, FALSE);
/* lock the backend */
pk_backend_dbus_lock (backend_dbus);
@@ -687,8 +700,8 @@ pk_backend_dbus_search_details (PkBackendDbus *backend_dbus, const gchar *filter
pk_backend_dbus_proxy_async_callback,
backend_dbus, NULL,
G_TYPE_STRING, filter,
- G_TYPE_STRING, search,
- G_TYPE_INVALID, G_TYPE_INVALID);
+ G_TYPE_STRING, search,
+ G_TYPE_INVALID, G_TYPE_INVALID);
/* unlock the backend if we failed */
if (call == NULL) {
@@ -707,6 +720,8 @@ pk_backend_dbus_search_group (PkBackendDbus *backend_dbus, const gchar *filter,
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (filter != NULL, FALSE);
+ g_return_val_if_fail (search != NULL, FALSE);
/* lock the backend */
pk_backend_dbus_lock (backend_dbus);
@@ -716,8 +731,8 @@ pk_backend_dbus_search_group (PkBackendDbus *backend_dbus, const gchar *filter,
pk_backend_dbus_proxy_async_callback,
backend_dbus, NULL,
G_TYPE_STRING, filter,
- G_TYPE_STRING, search,
- G_TYPE_INVALID, G_TYPE_INVALID);
+ G_TYPE_STRING, search,
+ G_TYPE_INVALID, G_TYPE_INVALID);
/* unlock the backend if we failed */
if (call == NULL) {
@@ -736,6 +751,8 @@ pk_backend_dbus_search_file (PkBackendDbus *backend_dbus, const gchar *filter, c
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (filter != NULL, FALSE);
+ g_return_val_if_fail (search != NULL, FALSE);
/* lock the backend */
pk_backend_dbus_lock (backend_dbus);
@@ -745,8 +762,8 @@ pk_backend_dbus_search_file (PkBackendDbus *backend_dbus, const gchar *filter, c
pk_backend_dbus_proxy_async_callback,
backend_dbus, NULL,
G_TYPE_STRING, filter,
- G_TYPE_STRING, search,
- G_TYPE_INVALID, G_TYPE_INVALID);
+ G_TYPE_STRING, search,
+ G_TYPE_INVALID, G_TYPE_INVALID);
/* unlock the backend if we failed */
if (call == NULL) {
@@ -765,6 +782,7 @@ pk_backend_dbus_get_depends (PkBackendDbus *backend_dbus, const gchar *package_i
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (package_id != NULL, FALSE);
/* lock the backend */
pk_backend_dbus_lock (backend_dbus);
@@ -774,8 +792,8 @@ pk_backend_dbus_get_depends (PkBackendDbus *backend_dbus, const gchar *package_i
pk_backend_dbus_proxy_async_callback,
backend_dbus, NULL,
G_TYPE_STRING, package_id,
- G_TYPE_BOOLEAN, recursive,
- G_TYPE_INVALID, G_TYPE_INVALID);
+ G_TYPE_BOOLEAN, recursive,
+ G_TYPE_INVALID, G_TYPE_INVALID);
/* unlock the backend if we failed */
if (call == NULL) {
@@ -794,6 +812,7 @@ pk_backend_dbus_get_requires (PkBackendDbus *backend_dbus, const gchar *package_
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (package_id != NULL, FALSE);
/* lock the backend */
pk_backend_dbus_lock (backend_dbus);
@@ -803,8 +822,8 @@ pk_backend_dbus_get_requires (PkBackendDbus *backend_dbus, const gchar *package_
pk_backend_dbus_proxy_async_callback,
backend_dbus, NULL,
G_TYPE_STRING, package_id,
- G_TYPE_BOOLEAN, recursive,
- G_TYPE_INVALID, G_TYPE_INVALID);
+ G_TYPE_BOOLEAN, recursive,
+ G_TYPE_INVALID, G_TYPE_INVALID);
/* unlock the backend if we failed */
if (call == NULL) {
@@ -823,6 +842,7 @@ pk_backend_dbus_get_update_detail (PkBackendDbus *backend_dbus, const gchar *pac
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (package_id != NULL, FALSE);
/* lock the backend */
pk_backend_dbus_lock (backend_dbus);
@@ -832,7 +852,7 @@ pk_backend_dbus_get_update_detail (PkBackendDbus *backend_dbus, const gchar *pac
pk_backend_dbus_proxy_async_callback,
backend_dbus, NULL,
G_TYPE_STRING, package_id,
- G_TYPE_INVALID, G_TYPE_INVALID);
+ G_TYPE_INVALID, G_TYPE_INVALID);
/* unlock the backend if we failed */
if (call == NULL) {
@@ -851,6 +871,7 @@ pk_backend_dbus_get_description (PkBackendDbus *backend_dbus, const gchar *packa
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (package_id != NULL, FALSE);
/* lock the backend */
pk_backend_dbus_lock (backend_dbus);
@@ -860,7 +881,7 @@ pk_backend_dbus_get_description (PkBackendDbus *backend_dbus, const gchar *packa
pk_backend_dbus_proxy_async_callback,
backend_dbus, NULL,
G_TYPE_STRING, package_id,
- G_TYPE_INVALID, G_TYPE_INVALID);
+ G_TYPE_INVALID, G_TYPE_INVALID);
/* unlock the backend if we failed */
if (call == NULL) {
@@ -879,6 +900,7 @@ pk_backend_dbus_get_files (PkBackendDbus *backend_dbus, const gchar *package_id)
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (package_id != NULL, FALSE);
/* lock the backend */
pk_backend_dbus_lock (backend_dbus);
@@ -888,7 +910,7 @@ pk_backend_dbus_get_files (PkBackendDbus *backend_dbus, const gchar *package_id)
pk_backend_dbus_proxy_async_callback,
backend_dbus, NULL,
G_TYPE_STRING, package_id,
- G_TYPE_INVALID, G_TYPE_INVALID);
+ G_TYPE_INVALID, G_TYPE_INVALID);
/* unlock the backend if we failed */
if (call == NULL) {
@@ -907,6 +929,7 @@ pk_backend_dbus_remove_package (PkBackendDbus *backend_dbus, const gchar *packag
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (package_id != NULL, FALSE);
/* lock the backend */
pk_backend_dbus_lock (backend_dbus);
@@ -916,8 +939,8 @@ pk_backend_dbus_remove_package (PkBackendDbus *backend_dbus, const gchar *packag
pk_backend_dbus_proxy_async_callback,
backend_dbus, NULL,
G_TYPE_STRING, package_id,
- G_TYPE_BOOLEAN, allow_deps,
- G_TYPE_INVALID, G_TYPE_INVALID);
+ G_TYPE_BOOLEAN, allow_deps,
+ G_TYPE_INVALID, G_TYPE_INVALID);
/* unlock the backend if we failed */
if (call == NULL) {
@@ -936,6 +959,7 @@ pk_backend_dbus_install_package (PkBackendDbus *backend_dbus, const gchar *packa
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (package_id != NULL, FALSE);
/* lock the backend */
pk_backend_dbus_lock (backend_dbus);
@@ -945,7 +969,7 @@ pk_backend_dbus_install_package (PkBackendDbus *backend_dbus, const gchar *packa
pk_backend_dbus_proxy_async_callback,
backend_dbus, NULL,
G_TYPE_STRING, package_id,
- G_TYPE_INVALID, G_TYPE_INVALID);
+ G_TYPE_INVALID, G_TYPE_INVALID);
/* unlock the backend if we failed */
if (call == NULL) {
@@ -964,6 +988,7 @@ pk_backend_dbus_update_package (PkBackendDbus *backend_dbus, const gchar *packag
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (package_id != NULL, FALSE);
/* lock the backend */
pk_backend_dbus_lock (backend_dbus);
@@ -973,7 +998,7 @@ pk_backend_dbus_update_package (PkBackendDbus *backend_dbus, const gchar *packag
pk_backend_dbus_proxy_async_callback,
backend_dbus, NULL,
G_TYPE_STRING, package_id,
- G_TYPE_INVALID, G_TYPE_INVALID);
+ G_TYPE_INVALID, G_TYPE_INVALID);
/* unlock the backend if we failed */
if (call == NULL) {
@@ -992,6 +1017,7 @@ pk_backend_dbus_install_file (PkBackendDbus *backend_dbus, const gchar *full_pat
DBusGProxyCall *call;
g_return_val_if_fail (backend_dbus != NULL, FALSE);
+ g_return_val_if_fail (full_path != NULL, FALSE);
/* lock the backend */
pk_backend_dbus_lock (backend_dbus);
@@ -1001,7 +1027,7 @@ pk_backend_dbus_install_file (PkBackendDbus *backend_dbus, const gchar *full_pat
pk_backend_dbus_proxy_async_callback,
backend_dbus, NULL,
G_TYPE_STRING, full_path,
- G_TYPE_INVALID, G_TYPE_INVALID);
+ G_TYPE_INVALID, G_TYPE_INVALID);
/* unlock the backend if we failed */
if (call == NULL) {
diff --git a/src/pk-backend-dbus.h b/src/pk-backend-dbus.h
index 7997868..58bc25d 100644
--- a/src/pk-backend-dbus.h
+++ b/src/pk-backend-dbus.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2007 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2007-2008 Richard Hughes <richard at hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
@@ -35,7 +35,18 @@ G_BEGIN_DECLS
#define PK_IS_BACKEND_DBUS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PK_TYPE_BACKEND_DBUS))
#define PK_BACKEND_DBUS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PK_TYPE_BACKEND_DBUS, PkBackendDbusClass))
+/**
+ * PK_DBUS_BACKEND_INTERFACE:
+ *
+ * Interface to use for the dbus backend
+ */
#define PK_DBUS_BACKEND_INTERFACE "org.freedesktop.PackageKitBackend"
+
+/**
+ * PK_DBUS_BACKEND_PATH:
+ *
+ * Path to use for the dbus backend
+ */
#define PK_DBUS_BACKEND_PATH "/org/freedesktop/PackageKitBackend"
typedef struct PkBackendDbusPrivate PkBackendDbusPrivate;
@@ -51,7 +62,6 @@ typedef struct
GObjectClass parent_class;
} PkBackendDbusClass;
-/* general */
GType pk_backend_dbus_get_type (void);
PkBackendDbus *pk_backend_dbus_new (void);
gboolean pk_backend_dbus_refresh_cache (PkBackendDbus *backend_dbus,
@@ -109,7 +119,6 @@ gboolean pk_backend_dbus_get_updates (PkBackendDbus *backend_dbus);
gboolean pk_backend_dbus_set_name (PkBackendDbus *backend_dbus,
const gchar *service);
-
G_END_DECLS
#endif /* __PK_BACKEND_DBUS_H */
commit b8c6d255c223944613d33676a19b40916df74651
Author: Richard Hughes <richard at hughsie.com>
Date: Wed Feb 13 21:01:10 2008 +0000
pointed out by owen, the dbus interface and path should be common between backends
diff --git a/backends/test/pk-backend-test-dbus.c b/backends/test/pk-backend-test-dbus.c
index 5aa93d0..2d0c4c7 100644
--- a/backends/test/pk-backend-test-dbus.c
+++ b/backends/test/pk-backend-test-dbus.c
@@ -27,9 +27,7 @@
static PkBackendDbus *dbus;
-#define PK_DBUS_TEST_INTERFACE "org.freedesktop.PackageKitTestBackend"
-#define PK_DBUS_TEST_SERVICE "org.freedesktop.PackageKitTestBackend"
-#define PK_DBUS_TEST_PATH "/org/freedesktop/PackageKitTestBackend"
+#define PK_DBUS_BACKEND_SERVICE_TEST "org.freedesktop.PackageKitTestBackend"
/**
* backend_search_name:
@@ -53,8 +51,7 @@ backend_initalize (PkBackend *backend)
g_return_if_fail (backend != NULL);
pk_debug ("FILTER: initalize");
dbus = pk_backend_dbus_new ();
- pk_backend_dbus_set_name (dbus, PK_DBUS_TEST_SERVICE,
- PK_DBUS_TEST_INTERFACE, PK_DBUS_TEST_PATH);
+ pk_backend_dbus_set_name (dbus, PK_DBUS_BACKEND_SERVICE_TEST);
}
/**
diff --git a/backends/yum2/helpers/yumDBUSBackend.py b/backends/yum2/helpers/yumDBUSBackend.py
index 339fb6f..26a3a99 100755
--- a/backends/yum2/helpers/yumDBUSBackend.py
+++ b/backends/yum2/helpers/yumDBUSBackend.py
@@ -219,10 +219,12 @@ def sigquit(signum, frame):
yumbase.doUnlock(YUM_PID_FILE)
sys.exit(1)
-PACKAGEKIT_DBUS_INTERFACE = 'org.freedesktop.PackageKitYumBackend'
+# This is specific to this backend
PACKAGEKIT_DBUS_SERVICE = 'org.freedesktop.PackageKitYumBackend'
-PACKAGEKIT_DBUS_PATH = '/org/freedesktop/PackageKitYumBackend'
+# This is common between backends
+PACKAGEKIT_DBUS_INTERFACE = 'org.freedesktop.PackageKitBackend'
+PACKAGEKIT_DBUS_PATH = '/org/freedesktop/PackageKitBackend'
class PackageKitYumBackend(PackageKitBaseBackend):
diff --git a/backends/yum2/pk-backend-yum2.c b/backends/yum2/pk-backend-yum2.c
index d10a735..34284f5 100644
--- a/backends/yum2/pk-backend-yum2.c
+++ b/backends/yum2/pk-backend-yum2.c
@@ -26,9 +26,7 @@
static PkBackendDbus *dbus;
static PkNetwork *network;
-#define PK_DBUS_YUM_INTERFACE "org.freedesktop.PackageKitYumBackend"
-#define PK_DBUS_YUM_SERVICE "org.freedesktop.PackageKitYumBackend"
-#define PK_DBUS_YUM_PATH "/org/freedesktop/PackageKitYumBackend"
+#define PK_DBUS_BACKEND_SERVICE_YUM "org.freedesktop.PackageKitYumBackend"
/**
* backend_initalize:
@@ -41,7 +39,7 @@ backend_initalize (PkBackend *backend)
pk_debug ("FILTER: initalize");
network = pk_network_new ();
dbus = pk_backend_dbus_new ();
- pk_backend_dbus_set_name (dbus, PK_DBUS_YUM_SERVICE, PK_DBUS_YUM_INTERFACE, PK_DBUS_YUM_PATH);
+ pk_backend_dbus_set_name (dbus, PK_DBUS_BACKEND_SERVICE_YUM);
}
/**
diff --git a/data/org.freedesktop.PackageKitTestBackend.conf.in b/data/org.freedesktop.PackageKitTestBackend.conf.in
index 7a58668..4f51831 100644
--- a/data/org.freedesktop.PackageKitTestBackend.conf.in
+++ b/data/org.freedesktop.PackageKitTestBackend.conf.in
@@ -5,21 +5,21 @@
<policy user="@PACKAGEKIT_USER@">
<allow own="org.freedesktop.PackageKitTestBackend"/>
<allow send_destination="org.freedesktop.PackageKitTestBackend"/>
- <allow send_interface="org.freedesktop.PackageKitTestBackend"/>
+ <allow send_interface="org.freedesktop.PackageKitBackend"/>
</policy>
<policy user="root">
<allow own="org.freedesktop.PackageKitTestBackend"/>
<allow send_destination="org.freedesktop.PackageKitTestBackend"/>
- <allow send_interface="org.freedesktop.PackageKitTestBackend"/>
+ <allow send_interface="org.freedesktop.PackageKitBackend"/>
</policy>
<policy at_console="true">
<deny send_destination="org.freedesktop.PackageKitTestBackend"/>
- <deny send_interface="org.freedesktop.PackageKitTestBackend"/>
+ <deny send_interface="org.freedesktop.PackageKitBackend"/>
</policy>
<policy context="default">
<deny own="org.freedesktop.PackageKitTestBackend"/>
<deny send_destination="org.freedesktop.PackageKitTestBackend"/>
- <deny send_interface="org.freedesktop.PackageKitTestBackend"/>
+ <deny send_interface="org.freedesktop.PackageKitBackend"/>
</policy>
</busconfig>
diff --git a/data/org.freedesktop.PackageKitYumBackend.conf.in b/data/org.freedesktop.PackageKitYumBackend.conf.in
index c16d7c5..e105f5f 100644
--- a/data/org.freedesktop.PackageKitYumBackend.conf.in
+++ b/data/org.freedesktop.PackageKitYumBackend.conf.in
@@ -5,21 +5,21 @@
<policy user="@PACKAGEKIT_USER@">
<allow own="org.freedesktop.PackageKitYumBackend"/>
<allow send_destination="org.freedesktop.PackageKitYumBackend"/>
- <allow send_interface="org.freedesktop.PackageKitYumBackend"/>
+ <allow send_interface="org.freedesktop.PackageKitBackend"/>
</policy>
<policy user="root">
<allow own="org.freedesktop.PackageKitYumBackend"/>
<allow send_destination="org.freedesktop.PackageKitYumBackend"/>
- <allow send_interface="org.freedesktop.PackageKitYumBackend"/>
+ <allow send_interface="org.freedesktop.PackageKitBackend"/>
</policy>
<policy at_console="true">
<deny send_destination="org.freedesktop.PackageKitYumBackend"/>
- <deny send_interface="org.freedesktop.PackageKitYumBackend"/>
+ <deny send_interface="org.freedesktop.PackageKitBackend"/>
</policy>
<policy context="default">
<deny own="org.freedesktop.PackageKitYumBackend"/>
<deny send_destination="org.freedesktop.PackageKitYumBackend"/>
- <deny send_interface="org.freedesktop.PackageKitYumBackend"/>
+ <deny send_interface="org.freedesktop.PackageKitBackend"/>
</policy>
</busconfig>
diff --git a/src/pk-backend-dbus.c b/src/pk-backend-dbus.c
index c196166..a2fffb4 100644
--- a/src/pk-backend-dbus.c
+++ b/src/pk-backend-dbus.c
@@ -64,8 +64,6 @@ struct PkBackendDbusPrivate
DBusGProxy *proxy;
PkBackend *backend;
gchar *service;
- gchar *interface;
- gchar *path;
gulong signal_finished;
};
@@ -303,8 +301,7 @@ pk_backend_dbus_repo_signature_required_cb (DBusGProxy *proxy, const gchar *repo
* pk_backend_dbus_set_name:
**/
gboolean
-pk_backend_dbus_set_name (PkBackendDbus *backend_dbus, const gchar *service,
- const gchar *interface, const gchar *path)
+pk_backend_dbus_set_name (PkBackendDbus *backend_dbus, const gchar *service)
{
DBusGProxy *proxy;
DBusGProxyCall *call;
@@ -319,7 +316,7 @@ pk_backend_dbus_set_name (PkBackendDbus *backend_dbus, const gchar *service,
/* grab this */
pk_debug ("trying to activate %s", service);
proxy = dbus_g_proxy_new_for_name (backend_dbus->priv->connection,
- service, path, interface);
+ service, PK_DBUS_BACKEND_PATH, PK_DBUS_BACKEND_INTERFACE);
dbus_g_proxy_add_signal (proxy, "RepoDetail",
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_INVALID);
@@ -392,11 +389,7 @@ pk_backend_dbus_set_name (PkBackendDbus *backend_dbus, const gchar *service,
/* save for later */
g_free (backend_dbus->priv->service);
- g_free (backend_dbus->priv->interface);
- g_free (backend_dbus->priv->path);
backend_dbus->priv->service = g_strdup (service);
- backend_dbus->priv->interface = g_strdup (interface);
- backend_dbus->priv->path = g_strdup (path);
/* manually init the backend, which should get things spawned for us */
call = dbus_g_proxy_begin_call (backend_dbus->priv->proxy, "Init",
@@ -1030,8 +1023,6 @@ pk_backend_dbus_finalize (GObject *object)
backend_dbus = PK_BACKEND_DBUS (object);
g_free (backend_dbus->priv->service);
- g_free (backend_dbus->priv->interface);
- g_free (backend_dbus->priv->path);
g_object_unref (backend_dbus->priv->proxy);
g_object_unref (backend_dbus->priv->backend);
@@ -1060,8 +1051,6 @@ pk_backend_dbus_init (PkBackendDbus *backend_dbus)
backend_dbus->priv = PK_BACKEND_DBUS_GET_PRIVATE (backend_dbus);
backend_dbus->priv->proxy = NULL;
backend_dbus->priv->service = NULL;
- backend_dbus->priv->interface = NULL;
- backend_dbus->priv->path = NULL;
backend_dbus->priv->backend = pk_backend_new ();
/* get connection */
diff --git a/src/pk-backend-dbus.h b/src/pk-backend-dbus.h
index bf518d5..7997868 100644
--- a/src/pk-backend-dbus.h
+++ b/src/pk-backend-dbus.h
@@ -35,6 +35,9 @@ G_BEGIN_DECLS
#define PK_IS_BACKEND_DBUS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PK_TYPE_BACKEND_DBUS))
#define PK_BACKEND_DBUS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PK_TYPE_BACKEND_DBUS, PkBackendDbusClass))
+#define PK_DBUS_BACKEND_INTERFACE "org.freedesktop.PackageKitBackend"
+#define PK_DBUS_BACKEND_PATH "/org/freedesktop/PackageKitBackend"
+
typedef struct PkBackendDbusPrivate PkBackendDbusPrivate;
typedef struct
@@ -104,9 +107,7 @@ gboolean pk_backend_dbus_get_repo_list (PkBackendDbus *backend_dbus);
gboolean pk_backend_dbus_cancel (PkBackendDbus *backend_dbus);
gboolean pk_backend_dbus_get_updates (PkBackendDbus *backend_dbus);
gboolean pk_backend_dbus_set_name (PkBackendDbus *backend_dbus,
- const gchar *service,
- const gchar *interface,
- const gchar *path);
+ const gchar *service);
G_END_DECLS
commit ff5aa0ae9834e071d9b619bf749cfb4fa70fa42a
Author: Richard Hughes <richard at hughsie.com>
Date: Wed Feb 13 20:55:45 2008 +0000
remove the m4 macro directory
diff --git a/configure.ac b/configure.ac
index 86fbe36..559c202 100755
--- a/configure.ac
+++ b/configure.ac
@@ -27,10 +27,8 @@ AM_PROG_CC_C_O
AM_PROG_LIBTOOL
# set up gtk-doc
-AC_CONFIG_MACRO_DIR(m4)
GTK_DOC_CHECK(1.9)
-
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
AM_PATH_PYTHON
commit ee7b5f27868fcdf159994fc6f005c690bf2975dc
Merge: 034bd07... c289443...
Author: Scott Reeves <sreeves at novell.com>
Date: Wed Feb 13 12:37:22 2008 -0700
Merge branch 'master' of git+ssh://sreeves@git.packagekit.org/srv/git/PackageKit
commit 034bd07d739805d789eeb2aa2a5627eebb486815
Author: Scott Reeves <sreeves at novell.com>
Date: Wed Feb 13 12:37:08 2008 -0700
update more zypp info
diff --git a/docs/html/pk-authors.html b/docs/html/pk-authors.html
index 03b490f..273f269 100644
--- a/docs/html/pk-authors.html
+++ b/docs/html/pk-authors.html
@@ -245,6 +245,23 @@
</td>
</tr>
+<tr>
+ <td>
+ <img src="img/author-unknown.png" alt="[img]"/><!-- image should be 120px wide -->
+ </td>
+ <td>
+ <h2>Scott Reeves</h2>
+ <p>
+ Scott is a member of the <a href="http://en.opensuse.org/GNOME">openSUSE GNOME
+ team</a>. He works on the Zypp backend of PackageKit. Scott is also one of
+ the maintainers of the gnome-main-menu project.
+ </p>
+ <p>
+ <b>Responsible for: zypp backend</b>
+ </p>
+ </td>
+</tr>
+
</table>
<p>Back to the <a href="index.html">main page</a></p>
diff --git a/docs/html/pk-faq.html b/docs/html/pk-faq.html
index 778ed66..299ca3f 100644
--- a/docs/html/pk-faq.html
+++ b/docs/html/pk-faq.html
@@ -29,7 +29,7 @@ refresh-cache | X | X | X | X | | X | X | |
\--force | | | | | | | | |
get-updates | X | X | | X | | X | X | |
update-system | X | X | | X | | X | X | |
-search-name | X | X | X | X | X | X | X | |
+search-name | X | X | X | X | X | X | X | X |
search-details | | X | X | X | | X | X | |
search-file | | X | | X | | | X | |
search-group | | X | | | | | X | |
commit c28944300be0bf0762b62eca2e50af88950de5a5
Author: Ken VanDine <ken at vandine.org>
Date: Wed Feb 13 14:27:55 2008 -0500
Added file
diff --git a/backends/conary/helpers/get-update-detail.py b/backends/conary/helpers/get-update-detail.py
new file mode 100755
index 0000000..271cce8
--- /dev/null
+++ b/backends/conary/helpers/get-update-detail.py
@@ -0,0 +1,18 @@
+#!/usr/bin/python
+#
+# Copyright (C) 2007 Ken VanDine <ken at vandine.org>
+#
+# 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.
+
+import sys
+from conaryBackend import PackageKitConaryBackend
+
+package = sys.argv[1]
+backend = PackageKitConaryBackend(sys.argv[1:])
+backend.get_update_detail(package)
+sys.exit(0)
commit 1f0924fb5f934cd4500069a6af90b19863917061
Author: Scott Reeves <sreeves at novell.com>
Date: Wed Feb 13 10:52:18 2008 -0700
update zypp information
diff --git a/configure.ac b/configure.ac
index cc7413b..86fbe36 100755
--- a/configure.ac
+++ b/configure.ac
@@ -321,7 +321,7 @@ if test x$with_default_backend = x; then
with_default_backend=smart
elif test -f /usr/bin/pisi ; then
with_default_backend=pisi
- elif test -f /usr/bin/zypp ; then
+ elif test -f /usr/bin/zypper ; then
with_default_backend=zypp
else
with_default_backend=dummy
diff --git a/docs/html/pk-download.html b/docs/html/pk-download.html
index cc10015..0ba1884 100644
--- a/docs/html/pk-download.html
+++ b/docs/html/pk-download.html
@@ -33,6 +33,10 @@ easier to install.
repository file and run: <code>yum install PackageKit gnome-packagekit</code> (as root)
</li>
<li>
+ openSUSE 11: Yes, add <a href="http://download.opensuse.org/distribution/SL-OSS-factory/inst-source">this</a>
+ repository file and run: <code>zypper install PackageKit gnome-packagekit</code> (as root)
+ </li>
+ <li>
Others: Probably not, although you can compile from source. See below for more details.
</li>
</ul>
commit 4a438946f904a7cbc19d0c819afa5956b5054c07
Author: Ken VanDine <ken at vandine.org>
Date: Wed Feb 13 08:16:17 2008 -0500
Added get-update-detail.py
diff --git a/backends/conary/helpers/Makefile.am b/backends/conary/helpers/Makefile.am
index 85e2364..ab7da29 100644
--- a/backends/conary/helpers/Makefile.am
+++ b/backends/conary/helpers/Makefile.am
@@ -9,6 +9,7 @@ dist_helper_DATA = \
get-depends.py \
get-requires.py \
get-updates.py \
+ get-update-detail.py \
install.py \
refresh-cache.py \
remove.py \
More information about the PackageKit
mailing list