summaryrefslogtreecommitdiffstats
path: root/src/package.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/package.h')
-rw-r--r--src/package.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/package.h b/src/package.h
index 58ef93da..ea9a3248 100644
--- a/src/package.h
+++ b/src/package.h
@@ -33,6 +33,10 @@
FREELIST(p);\
}
+/* reasons -- ie, why the package was installed */
+#define REASON_EXPLICIT 0 /* explicitly requested by the user */
+#define REASON_DEPEND 1 /* installed as a dependency for another package */
+
/* mods for depend_t.mod */
#define DEP_ANY 0
#define DEP_EQ 1
@@ -55,6 +59,7 @@ typedef struct __pkginfo_t {
unsigned long size;
unsigned short scriptlet;
unsigned short force;
+ unsigned short reason;
PMList *replaces;
PMList *groups;
PMList *files;