<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Richard Hughes wrote:
<blockquote cite="mid:1193852532.3197.1.camel@hughsie-laptop"
type="cite">
<pre wrap="">On Wed, 2007-10-31 at 17:33 +0200, S.Çağlar Onur wrote:
</pre>
<blockquote type="cite">
<pre wrap="">commit 26d69ac6757dd14742ad51ce70dd0649db033d8f
Author: S.Çağlar Onur <a class="moz-txt-link-rfc2396E" href="mailto:caglar@pardus.org.tr"><caglar@pardus.org.tr></a>
Date: Wed Oct 31 17:13:45 2007 +0200
export GROUP_UNKNOWN to backends
diff --git a/python/packagekit/backend.py b/python/packagekit/backend.py
index f2e8ae5..6495f63 100644
--- a/python/packagekit/backend.py
+++ b/python/packagekit/backend.py
@@ -97,6 +97,7 @@ GROUP_FONTS = "fonts"
GROUP_ADMIN_TOOLS = "admin-tools"
GROUP_LEGACY = "legacy"
GROUP_LOCALIZATION = "localization"
+GROUP_UNKNOWN = "unknown"
</pre>
</blockquote>
<pre wrap=""><!---->
Sane.
</pre>
<blockquote type="cite">
<pre wrap="">But instantly this question triggered in my mind. Do we have to map all groups
to known ones? If not, following one also needed by PK-Gnome but this means
group list will start to show a group called "Unknown" to users.
What should i do (revert the above or pushing following)?
diff --git a/src/pk-common-gui.c b/src/pk-common-gui.c
index 6226c16..d898b0d 100644
--- a/src/pk-common-gui.c
+++ b/src/pk-common-gui.c
@@ -641,6 +641,9 @@ pk_group_enum_to_localised_text (PkGroupEnum group)
        case PK_GROUP_ENUM_LOCALIZATION:
                text = _("Localization");
                break;
+        case PK_GROUP_ENUM_UNKNOWN:
+                text = _("Unknown");
+                break;
        default:
                pk_error ("group unrecognised: %i", group);
        }
</pre>
</blockquote>
<pre wrap=""><!---->
Push this, as it should be there anyway - but i don't think we should
show an "unknown" in pk-application - maybe we can just special case it.
Richard.
_______________________________________________
PackageKit mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PackageKit@lists.freedesktop.org">PackageKit@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/packagekit">http://lists.freedesktop.org/mailman/listinfo/packagekit</a>
</pre>
</blockquote>
Do we need a GROUP_UNKNOWN ???<br>
<br>
Uncategorised packages should go into GROUP_OTHER or in no groups at all<br>
<br>
Tim<br>
</body>
</html>