From 2275a2ef895e211115fc001d95e8676ecc5c9f40 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 29 Mar 2010 18:36:21 +0300 Subject: 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 ;) --- lib/verify.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/verify.c') 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 #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; -- cgit v1.2.3