[Yum-devel] [PATCH] Make pkgs scriptable: ("%(ui_nevra)s - %(ui_from_repo)s" % pkg). BZ 570615

Tim Lauridsen tim.lauridsen at googlemail.com
Fri Mar 5 06:10:25 UTC 2010


On Fri, Mar 5, 2010 at 1:12 AM, James Antill <james at and.org> wrote:

> ---
>  yum/packages.py |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/yum/packages.py b/yum/packages.py
> index c473ece..33cbc39 100644
> --- a/yum/packages.py
> +++ b/yum/packages.py
> @@ -290,6 +290,9 @@ class PackageObject(object):
>             return True
>         return False
>
> +    def __getitem__(self, key):
> +        return getattr(self, key)
> +
>     def verEQ(self, other):
>         """ Compare package to another one, only rpm-version equality. """
>         if not other:
> --
> 1.6.6
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel


ACK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20100305/a23ee2a1/attachment.htm>


More information about the Yum-devel mailing list