[Yum-devel] [PATCH] Eliminate an unnecessary round of transaction re-population

James Antill james at fedoraproject.org
Wed Feb 9 14:43:15 UTC 2011


On Wed, 2011-02-09 at 14:53 +0200, Panu Matilainen wrote:
> Initialize + populate the transaction set to be used for the test-run
> before calling rpm_check_debug to let them use the same set, avoiding
> one round of the fairly expensive re-population of the entire transaction.
> ---
>  cli.py          |   12 ++++++------
>  yum/__init__.py |   18 ++++++------------
>  2 files changed, 12 insertions(+), 18 deletions(-)

[...]
> -        # clean out the ts b/c we have to give it new paths to the rpms 
> -        del self.ts

 Assuming you tested running transactions with/without --installroot and
with/without local rpms ... ACK.



More information about the Yum-devel mailing list