[Yum-devel] [PATCH] Remove old txmbrs when creating a new remove txmbr, reinstall X X, BZ 622913.

James Antill james at fedoraproject.org
Tue Aug 10 20:33:58 UTC 2010


On Tue, 2010-08-10 at 15:52 -0400, seth vidal wrote:
> On Tue, 2010-08-10 at 15:15 -0400, James Antill wrote:
> > ---
> >  yum/__init__.py |    7 +++++++
> >  1 files changed, 7 insertions(+), 0 deletions(-)
> > 
> > diff --git a/yum/__init__.py b/yum/__init__.py
> > index 0304fea..ea7b7d1 100644
> > --- a/yum/__init__.py
> > +++ b/yum/__init__.py
> > @@ -3702,6 +3702,13 @@ class YumBase(depsolve.Depsolve):
> >              if self.conf.protected_packages and po.pkgtup == kern_pkgtup:
> >                  self.logger.warning(_("Skipping the running kernel: %s") % po)
> >                  continue
> > +            if self.tsInfo.getMembers(po.pkgtup):
> 
> maybe: 
> if self.tsInfo.getMembersWithState(po.pkgtup,
> output_states=TS_REMOVE_STATES):

 Alas we can't do that because for reinstall the only thing there is an
"install".



More information about the Yum-devel mailing list