Bug 202088

Summary: zypp does not update installed/uninstalled after commit()
Product: [openSUSE] openSUSE 10.2 Reporter: Andreas Hanke <andreas.hanke>
Component: libzyppAssignee: Duncan Mac-Vicar <dmacvicar>
Status: RESOLVED DUPLICATE QA Contact: Stanislav Visnovsky <visnov>
Severity: Critical    
Priority: P5 - None CC: aj, lslezak, ma, suse-beta
Version: Alpha 3 plus   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: YaST2 logfiles

Description Andreas Hanke 2006-08-27 04:50:10 UTC
Current Factory (libzypp-2.0.0-6):

I selected package automake, clicked "Accept" and YaST2 successfully installed the package.

Then it asked "Install or remove more packages?", I selected "Yes", searched for automake again and it still showed automake as uninstalled, even though "rpm -q automake" proves that it is actually installed.

The status is updated only after a complete restart of the YaST2 package manager.
Comment 1 Andreas Hanke 2006-08-27 04:53:40 UTC
Created attachment 97235 [details]
YaST2 logfiles
Comment 2 Stefan Hundhammer 2006-09-06 10:43:54 UTC
libzypp problem
Comment 3 Klaus Kämpf 2006-09-06 10:56:50 UTC
There is code in libzypp which re-generates the installed/uninstalled status after each transaction.
So this looks more like a UI-ZYPP API bug.

reassign to zypp bugzilla maintainer.
Comment 4 Stefan Schubert 2006-09-07 07:57:06 UTC
Ladislav, either package-bindings or not re-initialization in the package workflow ?
Comment 5 Ladislav Slezák 2006-09-14 12:38:35 UTC
I think that the bug is in zypp, the pool is not refreshed after commit().

When I add this sequence into sw_single it works correctly:

Pkg::TargetFinish();
Pkg::TargetInitialize(Installation::destdir);
Pkg::TargetLoad();

But that's ugly, it should be fixed either in bindings or in zypp.
Is it required to explicitly call the code mentioned in comment #3? (How?)
Comment 6 Ladislav Slezák 2006-09-20 13:26:51 UTC
*** Bug 206955 has been marked as a duplicate of this bug. ***
Comment 7 Ladislav Slezák 2006-09-22 12:25:11 UTC
*** Bug 201121 has been marked as a duplicate of this bug. ***
Comment 8 Ladislav Slezák 2006-09-22 12:27:46 UTC
JFY: I added the workaround from comment #5 to yast2-packager-2.13.151

Raising severity - the bug significantly affects package related actions done in yast
Comment 9 Duncan Mac-Vicar 2006-10-25 17:15:01 UTC

*** This bug has been marked as a duplicate of bug 213777 ***