[Yum-devel] [PATCH] Don't just delete obs. pkgs. (in history undo). BZ 652767.

tim.lauridsen at gmail.com tim.lauridsen at gmail.com
Tue Nov 16 06:00:23 UTC 2010


On Mon, Nov 15, 2010 at 9:34 PM, James Antill <james at and.org> wrote:

> ---
>  yum/__init__.py |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/yum/__init__.py b/yum/__init__.py
> index f2a698d..e036f86 100644
> --- a/yum/__init__.py
> +++ b/yum/__init__.py
> @@ -4250,6 +4250,11 @@ class YumBase(depsolve.Depsolve):
>                     done = True
>         for pkg in transaction.trans_data:
>             if pkg.state == 'Obsoleting':
> +                #  Note that obsoleting can mean anything, so if this is
> part of
> +                # something else, it should be done by now (so do
> nothing).
> +                if self.tsInfo.getMembers(pkg.pkgtup):
> +                    continue
> +                #  If not it should be an install/obsolete ... so remove
> it.
>                 if self.remove(pkgtup=pkg.pkgtup):
>                     done = True
>         for pkg in transaction.trans_data:
> --
> 1.7.2.3
>
> _______________________________________________
> 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/20101116/91495ac9/attachment.html>


More information about the Yum-devel mailing list