ZYPP: Changes regarding project Lotus and the introduction of PTFs
Hi. (Available since libzypp-17.27.0) The introduction of PTFs brings a few changes which may affect the YAST package selector: A while ago we introduced retracted patches/packages. In some respects PTFs and retracted packages behave similar: Independently of their version they will never be considered as a candidate by the resolver unless one explicitly selects them. This is why we sort retracted packages always to the end of the list of available version of a package (in zypp:ui:Selectable). And we will now do the same with PTFs. While it's disfavored to select and install retracted packages, selecting a PTF, and deselecting it once the official patches contain the fix, will be common. Nevertheless they are no candidate in the 'normal' package selection, but must be selected explicitely. Due to this we introduced the term of 'blacklisted' packages. Blacklisted = Retracted || Ptf Blacklisted packages are those which are sorted to the end of the lists and are otherwise ignored by the resolver. You need to explicitly select them if you want them. According to the already available isRetracted() methods in sat::Solvable, PoolItem, ResObjects and hasRetracted(), hasRetractedInstalled() methods in ui::Selectable, we now introduced isBlacklisted(), hasBlacklisted(), hasBlacklistedInstalled() methods which cover any type of blacklisted items. And of course the corresponding *Ptf() methods, so you can tell why some item is blacklisted. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres, E&I, ma@suse.com, Phone: ++49 (0)911 - 74 053-0 +------------------------------------------------------------------+ SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg Germany, (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer +------------------------------------------------------------------+
Dne 11. 06. 21 v 0:29 Michael Andres napsal(a):
Hi.
(Available since libzypp-17.27.0)
Thank you for the info!
The introduction of PTFs brings a few changes which may affect the YAST package selector:
The pkg-bindings package is not affected, so far we do not care about retracted packages/ptfs, the solver does not select them automatically and that's basically all what we need.
A while ago we introduced retracted patches/packages. In some respects PTFs and retracted packages behave similar: Independently of their version they will never be considered as a candidate by the resolver unless one explicitly selects them. This is why we sort retracted packages always to the end of the list of available version of a package (in zypp:ui:Selectable).
And we will now do the same with PTFs.
That might affect the packager widget, IIRC we display the retracted packages specifically. Moreover we have the "Retracted Packages" filter, maybe we should add a new category "Retracted PTFs"... Stefan (HuHa) knows more details. -- Ladislav Slezák YaST Developer SUSE LINUX, s.r.o. Corso IIa Křižíkova 148/34 18600 Praha 8
Dne 11. 06. 21 v 0:29 Michael Andres napsal(a):
Hi.
(Available since libzypp-17.27.0)
JFYI: Related links: - https://github.com/openSUSE/libzypp/pull/319 - https://bugzilla.suse.com/show_bug.cgi?id=1186503 -- Ladislav Slezák YaST Developer SUSE LINUX, s.r.o. Corso IIa Křižíkova 148/34 18600 Praha 8
On 6/11/21 12:29 AM, Michael Andres wrote:
Due to this we introduced the term of 'blacklisted' packages.
Blacklisted = Retracted || Ptf
Blacklisted packages are those which are sorted to the end of the lists and are otherwise ignored by the resolver. You need to explicitly select them if you want them.
Hi Michael, Such thing should IMO have a feature request. Then we could simply find out what is needed to be done on our side. Do you PLS have any reference ID or docs? Thx in advance Lukas -- Lukas Ocilka, Systems Mgmt & Consulting Team Leader & YaST Product Owner SLE Department, SUSE Linux
participants (3)
-
Ladislav Slezak
-
Lukas Ocilka
-
Michael Andres