[PATCH] yum: make transaction results available to plugins

Callum Lerwick seg at haxxed.com
Tue Sep 2 18:46:33 UTC 2008


On Mon, 2008-09-01 at 09:25 -0500, Xavier Toth wrote:
> @@ -459,6 +460,12 @@
>          result.update(self.getNewRequires(name, flag, version))
>          return result
> 
> +    def getTransactionResult(self):
> +        return self.transaction_result
> +
> +    def setTransactionResult(self, result):
> +        self.transaction_result = result
> +
>  class ConditionalTransactionData(TransactionData):
>      """A transaction data implementing conditional package addition"""
>      def __init__(self):

Getters and setters? In Python?

http://dirtsimple.org/2004/12/python-is-not-java.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20080902/c9df4107/attachment.sig>


More information about the fedora-devel-list mailing list