ius-coredev team mailing list archive
-
ius-coredev team
-
Mailing list archive
-
Message #02909
[Bug 1193102] Re: yum-plugin-replace fails to calculate all replacements when not from same SRPM
Hi Ben,
Sorry for the delay, I've been a bit busy this last two weeks.
I've tested the scenarios I mentioned in the two pull requests using
configurations
CentOS 5.9 - IUS Redhat repository
CentOS 5.9 - IUS CentOS repository
CentOS 6.4 - IUS Redhat repository
CentOS 6.4 - IUS CentOS repository
After installing the ius-testing yum-plugin-replace:
yum install php-cli php-pecl-memcache
yum replace php-common --replace-with=php54-common
# no dependencies removed
yum install mysql postfix
yum replace mysql --replace-with=mysql55
# no dependencies removed
# CentOS 6.4 only:
yum install mysql-libs postfix
yum replace mysql-libs --replace-with=mysql55-libs
# postfix removed
The last failure is not because of the plugin changes, and fails on the older 0.2.5, and appears to be an issue with your mysql5{1,5}-libs packages, which aren't hinting that mysqlclient1{5,6} should be installed. If you move your Requires: mysqlclient from mysql5X to mysql5X-libs like I did with Webtatic, it should resolve that issue.
So, I'd say the new version is working correctly
Andy
--
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