rpm
5.4.15
|
Add dependency tags to package header(s). More...
#include "system.h"
#include <rpmio.h>
#include <rpmiotypes.h>
#include "rpmbuild.h"
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | _RPMEVR_INTERNAL |
Functions | |
int | addReqProv (Spec spec, Header h, rpmTag tagN, const char *N, const char *EVR, rpmsenseFlags Flags, rpmuint32_t index) |
Add dependency to header, filtering duplicates. More... | |
int | rpmlibNeedsFeature (Header h, const char *feature, const char *featureEVR) |
Add rpmlib feature dependency. More... | |
Add dependency tags to package header(s).
Definition in file reqprov.c.
int addReqProv | ( | Spec | spec, |
Header | h, | ||
rpmTag | tagN, | ||
const char * | N, | ||
const char * | EVR, | ||
rpmsenseFlags | Flags, | ||
rpmuint32_t | index | ||
) |
Add dependency to header, filtering duplicates.
spec | spec file control structure |
h | header |
tagN | tag, identifies type of dependency |
N | (e.g. Requires: foo < 0:1.2-3, "foo") |
EVR | (e.g. Requires: foo < 0:1.2-3, "0:1.2-3") |
Flags | (e.g. Requires: foo < 0:1.2-3, both "Requires:" and "<") |
index | (0 always) |
Definition at line 14 of file reqprov.c.
References _free(), alloca(), _HE_s::append, rpmDataType_u::argv, _HE_s::c, flags, headerGet(), headerMod(), headerPut(), headerSprintf(), len, _HE_s::p, RPM_STRING_ARRAY_TYPE, RPM_UINT32_TYPE, rpmEVRfree(), rpmEVRnew(), rpmEVRoverlap(), rpmEVRparse(), RPMSENSE_EQUAL, RPMSENSE_SENSEMASK, RPMTAG_CONFLICTFLAGS, RPMTAG_CONFLICTNAME, RPMTAG_CONFLICTVERSION, RPMTAG_OBSOLETEFLAGS, RPMTAG_OBSOLETENAME, RPMTAG_OBSOLETEVERSION, RPMTAG_PROVIDEFLAGS, RPMTAG_PROVIDENAME, RPMTAG_PROVIDEVERSION, RPMTAG_REQUIREFLAGS, RPMTAG_REQUIRENAME, RPMTAG_REQUIREVERSION, RPMTAG_TRIGGERFLAGS, RPMTAG_TRIGGERINDEX, RPMTAG_TRIGGERNAME, RPMTAG_TRIGGERVERSION, _HE_s::t, _HE_s::tag, and rpmDataType_u::ui32p.
Referenced by parseRCPOT(), parseScript(), and rpmlibNeedsFeature().
int rpmlibNeedsFeature | ( | Header | h, |
const char * | feature, | ||
const char * | featureEVR | ||
) |
Add rpmlib feature dependency.
h | header |
feature | rpm feature name (i.e. "rpmlib(Foo)" for feature Foo) |
featureEVR | rpm feature epoch/version/release |
Definition at line 212 of file reqprov.c.
References addReqProv(), alloca(), RPMSENSE_EQUAL, RPMSENSE_LESS, RPMTAG_REQUIRENAME, and stpcpy().
Referenced by genCpioListAndHeader(), getDigestAlgo(), parseScript(), processPackageFiles(), and writeRPM().