This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [setup topic/libsolv] Does "obsoletes:" work?


On 10/20/2017 6:24 PM, Ken Brown wrote:
Jon,

Have you ever tested the "obsoletes:" feature of setup/libsolv?  I tried adding an "obsoletes:" line to setup.ini, and it didn't seem to have any effect.

It turns out that it *is* working (after a minor fix, attached), but not always as I expect. Suppose A requires B and C obsoletes B. Then the "obsoletes" statement appears to have no effect. If I remove the dependence of A on B, then setup does propose uninstalling B and installing C.

I guess the issue is that libsolv interprets "C obsoletes B" as "uninstall B and install C", and it won't uninstall B while something requires it.

Ken


Attachment: 0001-Fix-parsing-of-setup.ini.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]