[packagekit] packagekit: Branch 'master'

Richard Hughes hughsient at kemper.freedesktop.org
Mon Nov 12 13:21:34 PST 2007


 docs/pk-introduction.xml |    9 +++++++++
 libpackagekit/pk-enum.c  |    1 +
 libpackagekit/pk-enum.h  |    1 +
 3 files changed, 11 insertions(+)

New commits:
commit 067f152a17bb23a3b8b6ef473dd36506696fa837
Author: Richard Hughes <richard at hughsie.com>
Date:   Mon Nov 12 21:19:25 2007 +0000

    add a blocked enum for blocked-updates

diff --git a/docs/pk-introduction.xml b/docs/pk-introduction.xml
index f59aab8..d1fc50d 100644
--- a/docs/pk-introduction.xml
+++ b/docs/pk-introduction.xml
@@ -1209,11 +1209,20 @@
       </para>
       <para>
         <literal>Package</literal> enumerated types should be
+        <literal>blocked</literal>,
         <literal>low</literal>,
         <literal>normal</literal>,
         <literal>important</literal> or
         <literal>security</literal>.
       </para>
+      <para>
+        The status <literal>blocked</literal> signifies the package cannot be
+        updated, probably due to other dependencies not being met.
+        This type allows the GUI tools to show to the user that an update
+        exists, but cannot be installed.
+        The reason for it not being installed should be put into the update
+        description when doing GetUpdateDetail.
+      </para>
     </sect2>
 
     <sect2 id="api-refresh-cache">
diff --git a/libpackagekit/pk-enum.c b/libpackagekit/pk-enum.c
index abaa61a..222f5bb 100644
--- a/libpackagekit/pk-enum.c
+++ b/libpackagekit/pk-enum.c
@@ -186,6 +186,7 @@ static PkEnumMatch enum_info[] = {
 	{PK_INFO_ENUM_NORMAL,			"normal"},
 	{PK_INFO_ENUM_IMPORTANT,		"important"},
 	{PK_INFO_ENUM_SECURITY,			"security"},
+	{PK_INFO_ENUM_BLOCKED,			"blocked"},
 	{PK_INFO_ENUM_DOWNLOADING,		"downloading"},
 	{PK_INFO_ENUM_UPDATING,			"updating"},
 	{PK_INFO_ENUM_INSTALLING,		"installing"},
diff --git a/libpackagekit/pk-enum.h b/libpackagekit/pk-enum.h
index b869485..3d8103d 100644
--- a/libpackagekit/pk-enum.h
+++ b/libpackagekit/pk-enum.h
@@ -191,6 +191,7 @@ typedef enum {
 	PK_INFO_ENUM_NORMAL,
 	PK_INFO_ENUM_IMPORTANT,
 	PK_INFO_ENUM_SECURITY,
+	PK_INFO_ENUM_BLOCKED,
 	PK_INFO_ENUM_DOWNLOADING,
 	PK_INFO_ENUM_UPDATING,
 	PK_INFO_ENUM_INSTALLING,



More information about the PackageKit mailing list