*/
#include <rpmcli.h>
+#include <rpmds.h>
/* and it shouldn't need these :-( */
#include <rpmstring.h>
#include "system.h"
#include "rpmio/digest.h"
#include <rpmlib.h>
+#include <rpmds.h>
#include <rpmmacro.h> /* XXX for %_i18ndomains */
#include <rpmfi.h>
#include <rpmmacro.h>
#include <rpmstring.h>
#include <rpmfi.h>
+#include <rpmds.h>
#include "lib/legacy.h"
#include "debug.h"
extern int _rpmds_nopromote;
/** \ingroup rpmds
+ * Dependency Attributes.
+ */
+typedef enum rpmsenseFlags_e {
+ RPMSENSE_ANY = 0,
+ RPMSENSE_SERIAL = (1 << 0), /*!< @todo Legacy. */
+ RPMSENSE_LESS = (1 << 1),
+ RPMSENSE_GREATER = (1 << 2),
+ RPMSENSE_EQUAL = (1 << 3),
+ RPMSENSE_PROVIDES = (1 << 4), /* only used internally by builds */
+ RPMSENSE_CONFLICTS = (1 << 5), /* only used internally by builds */
+ /* bit 6 used to be RPMSENSE_PREREQ */
+#define RPMSENSE_PREREQ RPMSENSE_ANY
+ RPMSENSE_OBSOLETES = (1 << 7), /* only used internally by builds */
+ RPMSENSE_INTERP = (1 << 8), /*!< Interpreter used by scriptlet. */
+ RPMSENSE_SCRIPT_PRE = ((1 << 9)|RPMSENSE_PREREQ), /*!< %pre dependency. */
+ RPMSENSE_SCRIPT_POST = ((1 << 10)|RPMSENSE_PREREQ), /*!< %post dependency. */
+ RPMSENSE_SCRIPT_PREUN = ((1 << 11)|RPMSENSE_PREREQ), /*!< %preun dependency. */
+ RPMSENSE_SCRIPT_POSTUN = ((1 << 12)|RPMSENSE_PREREQ), /*!< %postun dependency. */
+ RPMSENSE_SCRIPT_VERIFY = (1 << 13), /*!< %verify dependency. */
+ RPMSENSE_FIND_REQUIRES = (1 << 14), /*!< find-requires generated dependency. */
+ RPMSENSE_FIND_PROVIDES = (1 << 15), /*!< find-provides generated dependency. */
+
+ RPMSENSE_TRIGGERIN = (1 << 16), /*!< %triggerin dependency. */
+ RPMSENSE_TRIGGERUN = (1 << 17), /*!< %triggerun dependency. */
+ RPMSENSE_TRIGGERPOSTUN = (1 << 18), /*!< %triggerpostun dependency. */
+ RPMSENSE_MISSINGOK = (1 << 19), /*!< suggests/enhances hint. */
+ RPMSENSE_SCRIPT_PREP = (1 << 20), /*!< %prep build dependency. */
+ RPMSENSE_SCRIPT_BUILD = (1 << 21), /*!< %build build dependency. */
+ RPMSENSE_SCRIPT_INSTALL = (1 << 22),/*!< %install build dependency. */
+ RPMSENSE_SCRIPT_CLEAN = (1 << 23), /*!< %clean build dependency. */
+ RPMSENSE_RPMLIB = ((1 << 24) | RPMSENSE_PREREQ), /*!< rpmlib(feature) dependency. */
+ RPMSENSE_TRIGGERPREIN = (1 << 25), /*!< @todo Implement %triggerprein. */
+ RPMSENSE_KEYRING = (1 << 26),
+ RPMSENSE_PATCHES = (1 << 27),
+ RPMSENSE_CONFIG = (1 << 28)
+} rpmsenseFlags;
+
+#define RPMSENSE_SENSEMASK 15 /* Mask to get senses, ie serial, */
+ /* less, greater, equal. */
+
+#define RPMSENSE_TRIGGER \
+ (RPMSENSE_TRIGGERIN | RPMSENSE_TRIGGERUN | RPMSENSE_TRIGGERPOSTUN)
+
+#define _ALL_REQUIRES_MASK (\
+ RPMSENSE_INTERP | \
+ RPMSENSE_SCRIPT_PRE | \
+ RPMSENSE_SCRIPT_POST | \
+ RPMSENSE_SCRIPT_PREUN | \
+ RPMSENSE_SCRIPT_POSTUN | \
+ RPMSENSE_SCRIPT_VERIFY | \
+ RPMSENSE_FIND_REQUIRES | \
+ RPMSENSE_SCRIPT_PREP | \
+ RPMSENSE_SCRIPT_BUILD | \
+ RPMSENSE_SCRIPT_INSTALL | \
+ RPMSENSE_SCRIPT_CLEAN | \
+ RPMSENSE_RPMLIB | \
+ RPMSENSE_KEYRING )
+
+#define _notpre(_x) ((_x) & ~RPMSENSE_PREREQ)
+#define _INSTALL_ONLY_MASK \
+ _notpre(RPMSENSE_SCRIPT_PRE|RPMSENSE_SCRIPT_POST|RPMSENSE_RPMLIB|RPMSENSE_KEYRING)
+#define _ERASE_ONLY_MASK \
+ _notpre(RPMSENSE_SCRIPT_PREUN|RPMSENSE_SCRIPT_POSTUN)
+
+#define isLegacyPreReq(_x) (((_x) & _ALL_REQUIRES_MASK) == RPMSENSE_PREREQ)
+#define isInstallPreReq(_x) ((_x) & _INSTALL_ONLY_MASK)
+#define isErasePreReq(_x) ((_x) & _ERASE_ONLY_MASK)
+
+/** \ingroup rpmds
* Unreference a dependency set instance.
* @param ds dependency set
* @param msg
#define RPMTAG_EXTERNAL_TAG 1000000
-/** \ingroup rpmds
- * Dependency Attributes.
- */
-typedef enum rpmsenseFlags_e {
- RPMSENSE_ANY = 0,
- RPMSENSE_SERIAL = (1 << 0), /*!< @todo Legacy. */
- RPMSENSE_LESS = (1 << 1),
- RPMSENSE_GREATER = (1 << 2),
- RPMSENSE_EQUAL = (1 << 3),
- RPMSENSE_PROVIDES = (1 << 4), /* only used internally by builds */
- RPMSENSE_CONFLICTS = (1 << 5), /* only used internally by builds */
- /* bit 6 used to be RPMSENSE_PREREQ */
-#define RPMSENSE_PREREQ RPMSENSE_ANY
- RPMSENSE_OBSOLETES = (1 << 7), /* only used internally by builds */
- RPMSENSE_INTERP = (1 << 8), /*!< Interpreter used by scriptlet. */
- RPMSENSE_SCRIPT_PRE = ((1 << 9)|RPMSENSE_PREREQ), /*!< %pre dependency. */
- RPMSENSE_SCRIPT_POST = ((1 << 10)|RPMSENSE_PREREQ), /*!< %post dependency. */
- RPMSENSE_SCRIPT_PREUN = ((1 << 11)|RPMSENSE_PREREQ), /*!< %preun dependency. */
- RPMSENSE_SCRIPT_POSTUN = ((1 << 12)|RPMSENSE_PREREQ), /*!< %postun dependency. */
- RPMSENSE_SCRIPT_VERIFY = (1 << 13), /*!< %verify dependency. */
- RPMSENSE_FIND_REQUIRES = (1 << 14), /*!< find-requires generated dependency. */
- RPMSENSE_FIND_PROVIDES = (1 << 15), /*!< find-provides generated dependency. */
-
- RPMSENSE_TRIGGERIN = (1 << 16), /*!< %triggerin dependency. */
- RPMSENSE_TRIGGERUN = (1 << 17), /*!< %triggerun dependency. */
- RPMSENSE_TRIGGERPOSTUN = (1 << 18), /*!< %triggerpostun dependency. */
- RPMSENSE_MISSINGOK = (1 << 19), /*!< suggests/enhances hint. */
- RPMSENSE_SCRIPT_PREP = (1 << 20), /*!< %prep build dependency. */
- RPMSENSE_SCRIPT_BUILD = (1 << 21), /*!< %build build dependency. */
- RPMSENSE_SCRIPT_INSTALL = (1 << 22),/*!< %install build dependency. */
- RPMSENSE_SCRIPT_CLEAN = (1 << 23), /*!< %clean build dependency. */
- RPMSENSE_RPMLIB = ((1 << 24) | RPMSENSE_PREREQ), /*!< rpmlib(feature) dependency. */
- RPMSENSE_TRIGGERPREIN = (1 << 25), /*!< @todo Implement %triggerprein. */
- RPMSENSE_KEYRING = (1 << 26),
- RPMSENSE_PATCHES = (1 << 27),
- RPMSENSE_CONFIG = (1 << 28)
-} rpmsenseFlags;
-
-#define RPMSENSE_SENSEMASK 15 /* Mask to get senses, ie serial, */
- /* less, greater, equal. */
-
-#define RPMSENSE_TRIGGER \
- (RPMSENSE_TRIGGERIN | RPMSENSE_TRIGGERUN | RPMSENSE_TRIGGERPOSTUN)
-
-#define _ALL_REQUIRES_MASK (\
- RPMSENSE_INTERP | \
- RPMSENSE_SCRIPT_PRE | \
- RPMSENSE_SCRIPT_POST | \
- RPMSENSE_SCRIPT_PREUN | \
- RPMSENSE_SCRIPT_POSTUN | \
- RPMSENSE_SCRIPT_VERIFY | \
- RPMSENSE_FIND_REQUIRES | \
- RPMSENSE_SCRIPT_PREP | \
- RPMSENSE_SCRIPT_BUILD | \
- RPMSENSE_SCRIPT_INSTALL | \
- RPMSENSE_SCRIPT_CLEAN | \
- RPMSENSE_RPMLIB | \
- RPMSENSE_KEYRING )
-
-#define _notpre(_x) ((_x) & ~RPMSENSE_PREREQ)
-#define _INSTALL_ONLY_MASK \
- _notpre(RPMSENSE_SCRIPT_PRE|RPMSENSE_SCRIPT_POST|RPMSENSE_RPMLIB|RPMSENSE_KEYRING)
-#define _ERASE_ONLY_MASK \
- _notpre(RPMSENSE_SCRIPT_PREUN|RPMSENSE_SCRIPT_POSTUN)
-
-#define isLegacyPreReq(_x) (((_x) & _ALL_REQUIRES_MASK) == RPMSENSE_PREREQ)
-#define isInstallPreReq(_x) ((_x) & _INSTALL_ONLY_MASK)
-#define isErasePreReq(_x) ((_x) & _ERASE_ONLY_MASK)
-
/* ==================================================================== */
/** \name RPMRC */
#include <rpmsq.h>
#include <rpmstring.h>
#include <rpmfileutil.h>
+#include <rpmds.h> /* XXX isInstallPreReq macro only */
#include <rpmlog.h>
#include "rpmdb/rpmdb_internal.h"
#include <rpmps.h>
#include <rpmte.h>
#include <rpmts.h>
+#include <rpmds.h>
#include <rpmlog.h>
#include <rpmfileutil.h>
#include <rpmps.h>
#include <rpmte.h>
#include <rpmts.h>
+#include <rpmds.h>
#include "lib/manifest.h"
#include <rpmlog.h>