[packagekit] Categories/Groups in yum on a Fedora system

S.Çağlar Onur caglar at pardus.org.tr
Wed Oct 31 14:55:35 PDT 2007


Hi;

30 Eki 2007 Sal tarihinde, Richard Hughes şunları yazmıştı: 
> On Tue, 2007-10-30 at 16:58 +0200, S.Çağlar Onur wrote:
> > So here are what PiSi currently provides as component/group :);
>
> That's not so daunting - can you try and match up your groups to the new
> list in backend.py please - yell if you think you need any more
> defined.
>
> You have an allowance of three new groups. More will cost one beer per
> define. :-)

After a quick look i came up with following. VIRTUALIZATION is for xen 
kernels/its user space tools/kvm/qemu/virtualbox and etc, SECURITY is for 
apparmor/its userspace/gnupg like security related applications.

After these i'll look deeper :), are these OK for now?

diff --git a/libpackagekit/pk-enum.c b/libpackagekit/pk-enum.c
index de7ad33..ea76e4c 100644
--- a/libpackagekit/pk-enum.c
+++ b/libpackagekit/pk-enum.c
@@ -144,6 +144,8 @@ static PkEnumMatch enum_group[] = {
 	{PK_GROUP_ENUM_ADMIN_TOOLS,		"admin-tools"},
 	{PK_GROUP_ENUM_LEGACY,			"legacy"},
 	{PK_GROUP_ENUM_LOCALIZATION,		"localization"},
+	{PK_GROUP_ENUM_VIRTUALIZATION,		"virtualization"},
+	{PK_GROUP_ENUM_SECURITY,		"security"},
 	{0, NULL},
 };
 
diff --git a/libpackagekit/pk-enum.h b/libpackagekit/pk-enum.h
index e034b6c..260c774 100644
--- a/libpackagekit/pk-enum.h
+++ b/libpackagekit/pk-enum.h
@@ -141,6 +141,8 @@ typedef enum {
 	PK_GROUP_ENUM_ADMIN_TOOLS,
 	PK_GROUP_ENUM_LEGACY,
 	PK_GROUP_ENUM_LOCALIZATION,
+	PK_GROUP_ENUM_VIRTUALIZATION,
+	PK_GROUP_ENUM_SECURITY,
 	PK_GROUP_ENUM_UNKNOWN
 } PkGroupEnum;
 
diff --git a/python/packagekit/backend.py b/python/packagekit/backend.py
index 6495f63..9c38a9e 100644
--- a/python/packagekit/backend.py
+++ b/python/packagekit/backend.py
@@ -97,6 +97,8 @@ GROUP_FONTS             = "fonts"
 GROUP_ADMIN_TOOLS       = "admin-tools"
 GROUP_LEGACY            = "legacy"
 GROUP_LOCALIZATION      = "localization"
+GROUP_VIRTUALIZATION    = "virtualization"
+GROUP_SECURITY          = "security"
 GROUP_UNKNOWN           = "unknown"
 
 # Classes

> Richard.

Cheers
-- 
S.Çağlar Onur <caglar at pardus.org.tr>
http://cekirdek.pardus.org.tr/~caglar/

Linux is like living in a teepee. No Windows, no Gates and an Apache in house!



More information about the PackageKit mailing list