diff options
author | jbj <devnull@localhost> | 2001-11-02 21:01:25 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-11-02 21:01:25 +0000 |
commit | b9520f3a9420c1738eb1691406b141029ac959ae (patch) | |
tree | 193738625131ccb2b2f7917a601dfe74b84e1684 /lib/rpmlibprov.c | |
parent | 973638fdc2ea244084ff39d6544aeccf85501812 (diff) | |
download | librpm-tizen-b9520f3a9420c1738eb1691406b141029ac959ae.tar.gz librpm-tizen-b9520f3a9420c1738eb1691406b141029ac959ae.tar.bz2 librpm-tizen-b9520f3a9420c1738eb1691406b141029ac959ae.zip |
- create toy rpmDepSet iterators.
CVS patchset: 5150
CVS date: 2001/11/02 21:01:25
Diffstat (limited to 'lib/rpmlibprov.c')
-rw-r--r-- | lib/rpmlibprov.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/rpmlibprov.c b/lib/rpmlibprov.c index 40026a328..1b0a1efcf 100644 --- a/lib/rpmlibprov.c +++ b/lib/rpmlibprov.c @@ -63,16 +63,20 @@ int rpmCheckRpmlibProvides(const rpmDepSet key) int rc = 0; rpmDepSet pro = memset(alloca(sizeof(*pro)), 0, sizeof(*pro)); + pro->Type = "Provides"; + pro->tagN = RPMTAG_PROVIDENAME; for (rlp = rpmlibProvides; rlp->featureName != NULL; rlp++) { if (rlp->featureEVR && rlp->featureFlags) { /*@-immediatetrans@*/ + pro->DNEVR = NULL; pro->N = (const char **) &rlp->featureName; pro->EVR = (const char **) &rlp->featureEVR; pro->Flags = &rlp->featureFlags; - pro->Count = 1; - pro->i = 0; /*@=immediatetrans@*/ + pro->Count = 1; + (void) dsiNext(dsiInit(pro)); rc = rpmRangesOverlap(key, pro); + pro->DNEVR = _free(pro->DNEVR); } if (rc) break; |