build/reqprov.c, rpmbuild.h: export compare_deps()
This commit is contained in:
parent
0cf73c5886
commit
705b043ac2
@ -22,13 +22,6 @@ deps_opt_enabled (void)
|
||||
return enabled;
|
||||
}
|
||||
|
||||
typedef enum {
|
||||
DEP_UN = 0, /* uncomparable */
|
||||
DEP_ST = 1, /* stronger */
|
||||
DEP_WK = -1, /* weaker */
|
||||
DEP_EQ = 2 /* same */
|
||||
} dep_compare_t;
|
||||
|
||||
static dep_compare_t compare_sense_flags (rpmTag tag, int cmp,
|
||||
rpmsenseFlags a, rpmsenseFlags b)
|
||||
{
|
||||
@ -81,7 +74,7 @@ static dep_compare_t compare_sense_flags (rpmTag tag, int cmp,
|
||||
|
||||
#include "set.h"
|
||||
|
||||
static dep_compare_t compare_deps (rpmTag tag,
|
||||
dep_compare_t compare_deps (rpmTag tag,
|
||||
const char *Aevr, rpmsenseFlags Aflags,
|
||||
const char *Bevr, rpmsenseFlags Bflags)
|
||||
{
|
||||
|
@ -408,6 +408,17 @@ int addReqProv(/*@unused@*/Spec spec, Header h,
|
||||
const char * depEVR, int index)
|
||||
/*@modifies h @*/;
|
||||
|
||||
typedef enum {
|
||||
DEP_UN = 0, /* uncomparable */
|
||||
DEP_ST = 1, /* stronger */
|
||||
DEP_WK = -1, /* weaker */
|
||||
DEP_EQ = 2 /* same */
|
||||
} dep_compare_t;
|
||||
|
||||
dep_compare_t compare_deps (rpmTag tag,
|
||||
const char *Aevr, rpmsenseFlags Aflags,
|
||||
const char *Bevr, rpmsenseFlags Bflags);
|
||||
|
||||
/** \ingroup rpmbuild
|
||||
* Add rpmlib feature dependency.
|
||||
* @param h header
|
||||
|
Loading…
Reference in New Issue
Block a user