diff options
author | Florian Festi <ffesti@redhat.com> | 2008-11-19 17:11:59 +0100 |
---|---|---|
committer | Florian Festi <ffesti@redhat.com> | 2008-11-24 14:03:16 +0100 |
commit | 35f0d2d3bc1d95993f25b8318d8fb9e33d02360f (patch) | |
tree | 1925a8efb5903d82cfcc92e8413e79f1b93598b6 /lib/psm.c | |
parent | 2f58ae809f18aa9fa5ce76900f298ad17ea24283 (diff) | |
download | rpm-35f0d2d3bc1d95993f25b8318d8fb9e33d02360f.tar.gz rpm-35f0d2d3bc1d95993f25b8318d8fb9e33d02360f.tar.bz2 rpm-35f0d2d3bc1d95993f25b8318d8fb9e33d02360f.zip |
switch to new rpmfiReplaced API
Diffstat (limited to 'lib/psm.c')
-rw-r--r-- | lib/psm.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -145,7 +145,7 @@ static rpmRC markReplacedFiles(const rpmpsm psm) { const rpmts ts = psm->ts; rpmfi fi = psm->fi; - sharedFileInfo replaced = fi->replaced; + sharedFileInfo replaced = rpmfiGetReplaced(fi); sharedFileInfo sfi; rpmdbMatchIterator mi; Header h; @@ -153,11 +153,11 @@ static rpmRC markReplacedFiles(const rpmpsm psm) unsigned int prev; int num, xx; - if (!(rpmfiFC(fi) > 0 && fi->replaced)) + if (!(rpmfiFC(fi) > 0 && replaced)) return RPMRC_OK; num = prev = 0; - for (sfi = replaced; sfi->otherPkg; sfi++) { + for (sfi = replaced; sfi; sfi=rpmfiNextReplaced(fi, sfi)) { if (prev && prev == sfi->otherPkg) continue; prev = sfi->otherPkg; @@ -169,7 +169,7 @@ static rpmRC markReplacedFiles(const rpmpsm psm) offsets = xmalloc(num * sizeof(*offsets)); offsets[0] = 0; num = prev = 0; - for (sfi = replaced; sfi->otherPkg; sfi++) { + for (sfi = replaced; sfi; sfi=rpmfiNextReplaced(fi, sfi)) { if (prev && prev == sfi->otherPkg) continue; prev = sfi->otherPkg; @@ -191,7 +191,7 @@ static rpmRC markReplacedFiles(const rpmpsm psm) prev = rpmdbGetIteratorOffset(mi); num = 0; - while (sfi->otherPkg && sfi->otherPkg == prev) { + while (sfi && sfi->otherPkg == prev) { int ix = rpmtdSetIndex(&secStates, sfi->otherFileNum); assert(ix != -1); @@ -205,7 +205,7 @@ static rpmRC markReplacedFiles(const rpmpsm psm) } num++; } - sfi++; + sfi=rpmfiNextReplaced(fi, sfi); } rpmtdFreeData(&secStates); } |