From: Panu Matilainen Date: Tue, 30 Oct 2007 13:50:35 +0000 (+0200) Subject: Split transaction score stuff to separate private header X-Git-Tag: rpm-4.6.0-rc1~1495^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41cd82aa7c6a0b9115d776a387b3177664075d44;p=platform%2Fupstream%2Frpm.git Split transaction score stuff to separate private header --- diff --git a/lib/Makefile.am b/lib/Makefile.am index 1f0ac6b..e178c57 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -24,7 +24,7 @@ librpm_la_SOURCES = \ idtx.c manifest.c manifest.h misc.c package.c \ poptALL.c poptI.c poptQV.c psm.c psm.h query.c \ rpmal.c rpmchecksig.c rpmds.c rpmfi.c rpmgi.c rpmgi_internal.h \ - rpminstall.c \ + rpminstall.c rpmtsscore.h \ rpmlead.c rpmlead.h rpmlibprov.c rpmps.c rpmrc.c rpmte.c rpmts.c \ rpmvercmp.c signature.c signature.h stringbuf.c transaction.c \ verify.c rpmlock.c rpmlock.h misc.h diff --git a/lib/psm.c b/lib/psm.c index 78e61e7..6fba8d9 100644 --- a/lib/psm.c +++ b/lib/psm.c @@ -23,7 +23,7 @@ #define _RPMTE_INTERNAL #include "rpmte.h" -#define _RPMTS_INTERNAL /* XXX ts->notify */ +#include "rpmtsscore.h" #include "rpmts.h" #include "rpmlead.h" /* writeLead proto */ diff --git a/lib/rpmts.c b/lib/rpmts.c index df6c471..79e87af 100644 --- a/lib/rpmts.c +++ b/lib/rpmts.c @@ -20,6 +20,7 @@ #define _RPMTS_INTERNAL #include "rpmts.h" +#include "rpmtsscore.h" /* XXX FIXME: merge with existing (broken?) tests in system.h */ /* portability fiddles */ diff --git a/lib/rpmts.h b/lib/rpmts.h index ee6f660..bd86210 100644 --- a/lib/rpmts.h +++ b/lib/rpmts.h @@ -99,85 +99,7 @@ typedef enum rpmtsOpX_e { #include "rpmhash.h" /* XXX hashTable */ #include "rpmal.h" /* XXX availablePackage/relocateFileList ,*/ -#include "rpmte.h" /* for rpmElementType */ - -/********************** - * Transaction Scores * - ********************** - * - * In order to allow instance counts to be adjusted properly when an - * autorollback transaction is ran, we keep a list that is indexed - * by rpm name of whether the rpm has been installed or erased. This listed - * is only updated: - * - * iif autorollbacks are enabled. - * iif this is not a rollback or autorollback transaction. - * - * When creating an autorollback transaction, its rpmts points to the same - * rpmtsScore object as the running transaction. So when the autorollback - * transaction runs it can see where each package was in the running transaction - * at the point the running transaction failed, and thus on a per package - * basis make adjustments to the instance counts. - * - * XXX: Jeff, I am not convinced that this does not need to be in its own file - * (i.e. rpmtsScore.{h,c}), but I first wanted to get it working. - */ -struct rpmtsScoreEntry_s { - char * N; /*!