summaryrefslogtreecommitdiff
path: root/lib/psm.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-11-25 12:22:10 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-11-26 17:35:13 +0200
commit440e843f87d190bc197c398510b89d8225a38bce (patch)
tree4e0896b723b45c81b957753b504f93164ce21974 /lib/psm.c
parent801a36d69beffc383b5cf4fbb63534ead9dfe84a (diff)
downloadrpm-440e843f87d190bc197c398510b89d8225a38bce.tar.gz
rpm-440e843f87d190bc197c398510b89d8225a38bce.tar.bz2
rpm-440e843f87d190bc197c398510b89d8225a38bce.zip
Lose now unnecessary PSM_RPMDB_LOAD stage and rpmpsmSetFI()
Diffstat (limited to 'lib/psm.c')
-rw-r--r--lib/psm.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/psm.c b/lib/psm.c
index 43d1dccf7..fdfb51f48 100644
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -1057,7 +1057,6 @@ static const char * pkgStageString(pkgStage a)
case PSM_RPMIO_FLAGS: return "rpmioflags";
- case PSM_RPMDB_LOAD: return "rpmdbload";
case PSM_RPMDB_ADD: return "rpmdbadd";
case PSM_RPMDB_REMOVE: return "rpmdbremove";
@@ -1126,18 +1125,6 @@ rpmRC rpmpsmScriptStage(rpmpsm psm, rpmTag scriptTag, rpmTag progTag)
return rpmpsmStage(psm, PSM_SCRIPT);
}
-rpmfi rpmpsmSetFI(rpmpsm psm, rpmfi fi)
-{
- assert(psm != NULL);
- if (psm->fi != NULL) {
- psm->fi = rpmfiFree(psm->fi);
- }
- if (fi != NULL) {
- psm->fi = rpmfiLink(fi, RPMDBG_M("rpmpsmSetFI"));
- }
- return psm->fi;
-}
-
rpmts rpmpsmGetTs(rpmpsm psm)
{
return (psm ? psm->ts : NULL);
@@ -1627,20 +1614,6 @@ rpmRC rpmpsmStage(rpmpsm psm, pkgStage stage)
rc = RPMRC_OK;
} break;
- case PSM_RPMDB_LOAD:
- {
- rpmdbMatchIterator mi;
- unsigned int rec = rpmteDBInstance(psm->te);
- mi = rpmtsInitIterator(ts, RPMDBI_PACKAGES, &rec, sizeof(rec));
-
- fi->h = rpmdbNextIterator(mi);
- if (fi->h != NULL)
- fi->h = headerLink(fi->h);
-
- mi = rpmdbFreeIterator(mi);
- rc = (fi->h != NULL ? RPMRC_OK : RPMRC_FAIL);
- break;
- }
case PSM_RPMDB_ADD:
if (rpmtsFlags(ts) & RPMTRANS_FLAG_TEST) break;
if (fi->h == NULL) break; /* XXX can't happen */