[Yum-devel] [PATCH 1/3] Allow "last" usage in merged transactions.

tim.lauridsen at gmail.com tim.lauridsen at gmail.com
Sat Apr 23 05:59:39 UTC 2011


On Thu, Apr 21, 2011 at 10:28 PM, James Antill <james at and.org> wrote:

> ---
>  output.py |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/output.py b/output.py
> index cf541f8..07c1d56 100755
> --- a/output.py
> +++ b/output.py
> @@ -1367,6 +1367,14 @@ to exit.
>         ''' Convert a user "TID" string of 2..4 into: (2, 4). '''
>         def str2int(x):
>             try:
> +                if x == 'last' or x.startswith('last-'):
> +                    tid = old.tid
> +                    if x.startswith('last-'):
> +                        off = int(x[len('last-'):])
> +                        if off <= 0:
> +                            int("z")
> +                        tid -= off
> +                    return tid
>                 return int(x)
>             except ValueError:
>                 return None
> --
> 1.7.3.4
>
> _______________________________________________
> 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/20110423/1cf4c001/attachment.html>


More information about the Yum-devel mailing list