[Yum-devel] [PATCH] Fix no script output from transaction, BZ 554462

Panu Matilainen pmatilai at laiskiainen.org
Mon Jan 18 15:37:46 UTC 2010


On Mon, 18 Jan 2010, James Antill wrote:

> ---
> rpmUtils/transaction.py |    9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/rpmUtils/transaction.py b/rpmUtils/transaction.py
> index 329de69..7e21fbf 100644
> --- a/rpmUtils/transaction.py
> +++ b/rpmUtils/transaction.py
> @@ -48,6 +48,15 @@ class TransactionWrapper:
>         # Automatically close the rpm transaction when the reference is lost
>         self.close()
>
> +    def _wrap_scriptFd_get(self):
> +        return self.ts.scriptFd

ts.scriptFd is a write-only attribute, the above will raise AttributeError 
on any current rpm version if used. In rpm 4.8.0 it technically *could* 
return an FD but it just didn't get done as there's not much use for it.

 	- Panu -


More information about the Yum-devel mailing list