[Yum] --allow-downgrade - how does it work? still having problems...
Nikola Ciprich
extmaillist at linuxbox.cz
Thu Sep 18 20:55:42 UTC 2008
Hello everybody,
some time ago, I asked here for help, because I can't get allowdowngrade plugin
working. We didn't come to any conclusion, and I didn't have time to play with
it anymore, but now I got back to it, and I'd like to ask for bit of explanation.
I did a bit of exploring, and I'm a bit confused. It seems that allowdowngrade adds
hooks to postresolve, but if I try to install package, yum just doesn't get there
at all, so plugin can't really change anything.
It seems that it ends in yum/__init__.py, after line 2392 (install method):
# make sure we don't have a name.arch of this already installed
# if so pass it to update b/c it should be able to figure it out
if self.rpmdb.contains(name=po.name, arch=po.arch) and not self.allowedMultipleInstalls(po):
if not self.tsInfo.getMembersWithState(po.pkgtup, TS_REMOVE_STATES):
self.verbose_logger.warning(_('Package matching %s already installed. Checking for update.')
txmbrs = self.update(po=po)
tx_return.extend(txmbrs)
continue
self.update(po=po) returns empty list, which causes package to be skipped. Is this intended behaviour?
Should I be looking elsewhere?
I'm using latest yum and yum-allowdowngrade
Any ideas?
thanks a lot in advance!
with best regards
nik
--
-------------------------------------
Nikola CIPRICH
LinuxBox.cz, s.r.o.
28. rijna 168, 709 01 Ostrava
tel.: +420 596 603 142
fax: +420 596 621 273
mobil: +420 777 093 799
www.linuxbox.cz
mobil servis: +420 737 238 656
email servis: servis at linuxbox.cz
-------------------------------------
More information about the Yum
mailing list