RPMTAG_NEVR = 5015, /* s extension */
RPMTAG_NEVRA = 5016, /* s extension */
RPMTAG_HEADERCOLOR = 5017, /* i extension */
+ RPMTAG_VERBOSE = 5018, /* i extension */
RPMTAG_FIRSTFREE_TAG /*!< internal */
} rpmTag;
#include <rpm/rpmmacro.h> /* XXX for %_i18ndomains */
#include <rpm/rpmfi.h>
#include <rpm/rpmstring.h>
+#include <rpm/rpmlog.h>
#include "debug.h"
return getNEVRA(h, td, NEVRA_NAME|NEVRA_EPOCH|NEVRA_VERSION|NEVRA_RELEASE|NEVRA_ARCH);
}
+static int verboseTag(Header h, rpmtd td, headerGetFlags hgflags)
+{
+ if (rpmIsVerbose()) {
+ td->type = RPM_INT32_TYPE;
+ td->count = 1;
+ td->data = &(td->count);
+ td->flags = RPMTD_NONE;
+ return 1;
+ } else {
+ return 0;
+ }
+}
+
void *rpmHeaderTagFunc(rpmTag tag)
{
const struct headerTagFunc_s * ext;
{ RPMTAG_NVRA, nvraTag },
{ RPMTAG_NEVRA, nevraTag },
{ RPMTAG_HEADERCOLOR, headercolorTag },
+ { RPMTAG_VERBOSE, verboseTag },
{ 0, NULL }
};