diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-03-29 18:36:21 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-03-29 18:40:29 +0300 |
commit | 2275a2ef895e211115fc001d95e8676ecc5c9f40 (patch) | |
tree | 9be487d3e0730010563e1897fe11866976ff3c89 /lib/verify.c | |
parent | 7289fadea367e43a4ecf505877cb0a39afa34d60 (diff) | |
download | rpm-2275a2ef895e211115fc001d95e8676ecc5c9f40.tar.gz rpm-2275a2ef895e211115fc001d95e8676ecc5c9f40.tar.bz2 rpm-2275a2ef895e211115fc001d95e8676ecc5c9f40.zip |
Hide rpmte open/close/error etc logic inside rpmteProcess()
- make a bunch of helper functions static now that they're not needed
elsewhere, rpmte is slowly becoming self-aware ;)
Diffstat (limited to 'lib/verify.c')
-rw-r--r-- | lib/verify.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/verify.c b/lib/verify.c index b3242aa48..af6354771 100644 --- a/lib/verify.c +++ b/lib/verify.c @@ -22,7 +22,7 @@ #include <rpm/rpmfileutil.h> #include "lib/misc.h" /* uidToUname(), gnameToGid */ -#include "lib/rpmte_internal.h" /* rpmteOpen(), rpmteClose() */ +#include "lib/rpmte_internal.h" /* rpmteProcess() */ #include "debug.h" @@ -272,12 +272,10 @@ static int rpmVerifyScript(QVA_t qva, rpmts ts, Header h) /* fake up a erasure transaction element */ rc = rpmtsAddEraseElement(ts, h, -1); te = rpmtsElement(ts, 0); - rpmteOpen(te, ts, 0); - - rc = rpmpsmRun(ts, te, PKG_VERIFY); + + rc = rpmteProcess(te, ts, PKG_VERIFY); /* clean up our fake transaction bits */ - rpmteClose(te, ts, 0); rpmtsEmpty(ts); return rc; |