← Back to team overview

ius-coredev team mailing list archive

[Bug 1193102] Re: yum-plugin-replace fails to calculate all replacements when not from same SRPM

 

sorry I should add that it was both x386 and x86_64 for each
configuration I tested for, so all architectures/repos were tested in
CentOS 5.9 and 6.4

-- 
You received this bug notification because you are a member of IUS Core
Development, which is subscribed to IUS Community Project.
https://bugs.launchpad.net/bugs/1193102

Title:
  yum-plugin-replace fails to calculate all replacements when not from
  same SRPM

Status in IUS Community Project:
  Fix Committed

Bug description:
  I found a bug in replace.py, where only one entry in
  pkgs_to_not_remove is performing the "messy" counterpart checks when
  not in the same SRPM. Essentially pkgs_to_not_remove being altered
  while looping, and so ending the loop prematurely.

  I fixed the bug and have issued a github pull request for it almost a
  month ago https://github.com/iuscommunity/yum-plugin-replace/pull/4

  Steps to reproduce:

  yum install php php-pecl-memcache
  yum replace php --replace-with=php54
  Expecting to see:

  Installing:
    php54-pecl-memcache
  Removing:
    php-pecl-memcache
  Actual result:

  Removing for dependencies:
    php-pecl-memcache

To manage notifications about this bug go to:
https://bugs.launchpad.net/ius/+bug/1193102/+subscriptions


References