NAME
Hdlist::Header::Dependencies - A set of dependencies
METHODS
Hdlist::Header::Dependencies->new($tagtype, $dep1, [$dep2, ...])
Create a new arbitrary dependencies set. $tagtype is the rpm tag {PROVIDE/REQUIRE/CONFLICT/OBSOLETE/TRIGGER}NAME.
Next arguments are array ref for each dependancy to add in the dependencies set, in form a name and optionnaly as sense flags and a version.
For example:
$d = Hdlist::Header::Dependencies->new(
"REQUIRENAME"
[ "rpm" ],
[ "rpm", 2, "4.0" ],
[ "rpm", [ qw/LESS/ ], "4.0" ]
);
$deps->count
Return the number of dependencies contained by this set.
$deps->move($index)
Move internal index to $index (0 by default).
$deps->init
Reset internal index and set it to -1, see next
$deps->hasnext
Advance to next dependency in the set. Return FALSE if no further dependency available, TRUE otherwise.
$deps->next
Advance to next dependency in the set. Return -1 if no further dependency available, next index otherwise.
$deps->color
Return the 'color' of the current dependency in the depencies set.
$deps->overlap($depb)
Compare two dependency from two dependencies set and return TRUE if match.
$deps->info
Return information about current dependency from dependencies set.
$deps->tag
Return the type of the dependencies set as a rpmtag (PROVIDENAME, REQUIRENAME, PROVIDENAME, OBSOLETENAME of TRIGGERNAME).
$deps->name
Return the name of dependency from dependencies set.
$deps->flags
Return the sense flag of dependency from dependencies set.
$deps->evr
Return the version of dependency from dependencies set.
$deps->nopromote($nopromote)
Set or return the nopromote flags of the dependencies set.