--- a/src/pkgbase.h
+++ b/src/pkgbase.h
@@ -239,7 +239,11 @@
 
     /* Methods for compiling the schedule of actions.
      */
-    int SetAuthorities( pkgActionItem* );
+    unsigned long SetAuthorities( pkgActionItem* );
+    inline unsigned long HasAttribute( unsigned long required )
+    {
+      return flags & required;
+    }
     pkgActionItem* GetReference( pkgActionItem& );
     pkgActionItem* Schedule( unsigned long, pkgActionItem& );
     inline void SetPrimary( pkgActionItem* );