fix the types of fields in razor_property for easier debugging
authorDan Winship <danw@gnome.org>
Tue, 11 Mar 2008 19:45:53 +0000 (15:45 -0400)
committerDan Winship <danw@gnome.org>
Tue, 11 Mar 2008 19:45:53 +0000 (15:45 -0400)
also fix a case in razor_transaction_describe

razor.c

diff --git a/razor.c b/razor.c
index 2117b53..2682d85 100644 (file)
--- a/razor.c
+++ b/razor.c
@@ -52,8 +52,8 @@ struct razor_package {
 struct razor_property {
        uint name  : 24;
        uint flags : 6;
-       uint type  : 2;
-       uint32_t relation;
+       enum razor_property_type type : 2;
+       enum razor_version_relation relation : 32;
        uint32_t version;
        struct list_head packages;
 };
@@ -2683,7 +2683,7 @@ razor_transaction_describe(struct razor_transaction *trans)
                        if (p->dep_package) {
                                printf(" which required %s",
                                       p->dep_package);
-                               if (strcmp(p->dep_property, p->name) != 0)
+                               if (strcmp(p->dep_property, p->dep_package) != 0)
                                        printf(" for %s", p->dep_property);
                        }
                        printf("\n");