|
rpm 4.9.1
|
Enumerations | |
| enum | rpmsenseFlags_e { RPMSENSE_ANY = 0, RPMSENSE_LESS = (1 << 1), RPMSENSE_GREATER = (1 << 2), RPMSENSE_EQUAL = (1 << 3), RPMSENSE_POSTTRANS = (1 << 5), RPMSENSE_PREREQ = (1 << 6), RPMSENSE_PRETRANS = (1 << 7), RPMSENSE_INTERP = (1 << 8), RPMSENSE_SCRIPT_PRE = (1 << 9), RPMSENSE_SCRIPT_POST = (1 << 10), RPMSENSE_SCRIPT_PREUN = (1 << 11), RPMSENSE_SCRIPT_POSTUN = (1 << 12), RPMSENSE_SCRIPT_VERIFY = (1 << 13), RPMSENSE_FIND_REQUIRES = (1 << 14), RPMSENSE_FIND_PROVIDES = (1 << 15), RPMSENSE_TRIGGERIN = (1 << 16), RPMSENSE_TRIGGERUN = (1 << 17), RPMSENSE_TRIGGERPOSTUN = (1 << 18), RPMSENSE_MISSINGOK = (1 << 19), RPMSENSE_RPMLIB = (1 << 24), RPMSENSE_TRIGGERPREIN = (1 << 25), RPMSENSE_KEYRING = (1 << 26), RPMSENSE_CONFIG = (1 << 28) } |
| Dependency Attributes. More... | |
Functions | |
| rpmds | rpmdsLink (rpmds ds) |
| Reference a dependency set instance. | |
| rpmds | rpmdsFree (rpmds ds) |
| Destroy a dependency set. | |
| rpmds | rpmdsNew (Header h, rpmTagVal tagN, int flags) |
| Create and load a dependency set. | |
| char * | rpmdsNewDNEVR (const char *dspfx, const rpmds ds) |
| Return new formatted dependency string. | |
| rpmds | rpmdsThis (Header h, rpmTagVal tagN, rpmsenseFlags Flags) |
| Create, load and initialize a dependency for this header. | |
| rpmds | rpmdsSingle (rpmTagVal tagN, const char *N, const char *EVR, rpmsenseFlags Flags) |
| Create, load and initialize a dependency set of size 1. | |
| rpmds | rpmdsCurrent (rpmds ds) |
| Return a new dependency set of size 1 from the current iteration index. | |
| int | rpmdsCount (const rpmds ds) |
| Return dependency set count. | |
| int | rpmdsIx (const rpmds ds) |
| Return dependency set index. | |
| int | rpmdsSetIx (rpmds ds, int ix) |
| Set dependency set index. | |
| const char * | rpmdsDNEVR (const rpmds ds) |
| Return current formatted dependency string. | |
| const char * | rpmdsN (const rpmds ds) |
| Return current dependency name. | |
| const char * | rpmdsEVR (const rpmds ds) |
| Return current dependency epoch-version-release. | |
| rpmsenseFlags | rpmdsFlags (const rpmds ds) |
| Return current dependency flags. | |
| rpmTagVal | rpmdsTagN (const rpmds ds) |
| Return current dependency type. | |
| unsigned int | rpmdsInstance (rpmds ds) |
| Return dependency header instance, ie whether the dependency comes from an installed header or not. | |
| int | rpmdsNoPromote (const rpmds ds) |
| Return current "Don't promote Epoch:" flag. | |
| int | rpmdsSetNoPromote (rpmds ds, int nopromote) |
| Set "Don't promote Epoch:" flag. | |
| rpm_color_t | rpmdsColor (const rpmds ds) |
| Return current dependency color. | |
| rpm_color_t | rpmdsSetColor (const rpmds ds, rpm_color_t color) |
| Return current dependency color. | |
| void | rpmdsNotify (rpmds ds, const char *where, int rc) |
| Notify of results of dependency match. | |
| int | rpmdsNext (rpmds ds) |
| Return next dependency set iterator index. | |
| rpmds | rpmdsInit (rpmds ds) |
| Initialize dependency set iterator. | |
| int | rpmdsFind (rpmds ds, const rpmds ods) |
| Find a dependency set element using binary search. | |
| int | rpmdsMerge (rpmds *dsp, rpmds ods) |
| Merge a dependency set maintaining (N,EVR,Flags) sorted order. | |
| int | rpmdsSearch (rpmds ds, rpmds ods) |
| Search a sorted dependency set for an element that overlaps. | |
| int | rpmdsCompare (const rpmds A, const rpmds B) |
| Compare two versioned dependency ranges, looking for overlap. | |
| int | rpmdsAnyMatchesDep (const Header h, const rpmds req, int nopromote) |
| Compare package provides dependencies from header with a single dependency. | |
| int | rpmdsNVRMatchesDep (const Header h, const rpmds req, int nopromote) |
| Compare package name-version-release from header with a single dependency. | |
| enum rpmsenseFlags_e |
Dependency Attributes.
Compare package provides dependencies from header with a single dependency.
| h | header |
| req | dependency set |
| nopromote | Don't promote Epoch: in comparison? |
| rpm_color_t rpmdsColor | ( | const rpmds | ds | ) |
Return current dependency color.
| ds | dependency set |
Compare two versioned dependency ranges, looking for overlap.
| A | 1st dependency |
| B | 2nd dependency |
| int rpmdsCount | ( | const rpmds | ds | ) |
Return dependency set count.
| ds | dependency set |
Return a new dependency set of size 1 from the current iteration index.
| ds | dependency set |
| const char* rpmdsDNEVR | ( | const rpmds | ds | ) |
Return current formatted dependency string.
| ds | dependency set |
| const char* rpmdsEVR | ( | const rpmds | ds | ) |
Return current dependency epoch-version-release.
| ds | dependency set |
Find a dependency set element using binary search.
| ds | dependency set to search |
| ods | dependency set element to find. |
| rpmsenseFlags rpmdsFlags | ( | const rpmds | ds | ) |
Return current dependency flags.
| ds | dependency set |
Destroy a dependency set.
| ds | dependency set |
Initialize dependency set iterator.
| ds | dependency set |
| unsigned int rpmdsInstance | ( | rpmds | ds | ) |
Return dependency header instance, ie whether the dependency comes from an installed header or not.
| ds | dependency set |
| int rpmdsIx | ( | const rpmds | ds | ) |
Return dependency set index.
| ds | dependency set |
Reference a dependency set instance.
| ds | dependency set |
Merge a dependency set maintaining (N,EVR,Flags) sorted order.
| *dsp | (merged) dependency set |
| ods | dependency set to merge |
| const char* rpmdsN | ( | const rpmds | ds | ) |
Return current dependency name.
| ds | dependency set |
Create and load a dependency set.
| h | header |
| tagN | type of dependency |
| flags | unused |
| char* rpmdsNewDNEVR | ( | const char * | dspfx, |
| const rpmds | ds | ||
| ) |
Return new formatted dependency string.
| dspfx | formatted dependency string prefix |
| ds | dependency set |
| int rpmdsNext | ( | rpmds | ds | ) |
Return next dependency set iterator index.
| ds | dependency set |
| int rpmdsNoPromote | ( | const rpmds | ds | ) |
Return current "Don't promote Epoch:" flag.
This flag controls for Epoch: promotion when a dependency set is compared. If the flag is set (for already installed packages), then an unspecified value will be treated as Epoch: 0. Otherwise (for added packages), the Epoch: portion of the comparison is skipped if the value is not specified, i.e. an unspecified Epoch: is assumed to be equal in dependency comparisons.
| ds | dependency set |
| void rpmdsNotify | ( | rpmds | ds, |
| const char * | where, | ||
| int | rc | ||
| ) |
Notify of results of dependency match.
| ds | dependency set |
| where | where dependency was resolved (or NULL) |
| rc | 0 == YES, otherwise NO |
Compare package name-version-release from header with a single dependency.
| h | header |
| req | dependency set |
| nopromote | Don't promote Epoch: in comparison? |
Search a sorted dependency set for an element that overlaps.
A boolean result is saved (if allocated) and accessible through rpmdsResult(ods) afterwards.
| ds | dependency set to search |
| ods | dependency set element to find. |
| rpm_color_t rpmdsSetColor | ( | const rpmds | ds, |
| rpm_color_t | color | ||
| ) |
Return current dependency color.
| ds | dependency set |
| color | new dependency color |
| int rpmdsSetIx | ( | rpmds | ds, |
| int | ix | ||
| ) |
Set dependency set index.
| ds | dependency set |
| ix | new index |
| int rpmdsSetNoPromote | ( | rpmds | ds, |
| int | nopromote | ||
| ) |
Set "Don't promote Epoch:" flag.
| ds | dependency set |
| nopromote | Should an unspecified Epoch: be treated as Epoch: 0? |
| rpmds rpmdsSingle | ( | rpmTagVal | tagN, |
| const char * | N, | ||
| const char * | EVR, | ||
| rpmsenseFlags | Flags | ||
| ) |
Create, load and initialize a dependency set of size 1.
| tagN | type of dependency |
| N | name |
| EVR | epoch:version-release |
| Flags | comparison flags |
Return current dependency type.
| ds | dependency set |
| rpmds rpmdsThis | ( | Header | h, |
| rpmTagVal | tagN, | ||
| rpmsenseFlags | Flags | ||
| ) |
Create, load and initialize a dependency for this header.
| h | header |
| tagN | type of dependency |
| Flags | comparison flags |
1.7.4