--allow-downgrade - how does it work? still having problems...

Nikola Ciprich <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
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: [email protected]
-------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.