Bug 202088 - zypp does not update installed/uninstalled after commit()
Summary: zypp does not update installed/uninstalled after commit()
Status: RESOLVED DUPLICATE of bug 213777
: 201121 206955 (view as bug list)
Alias: None
Product: openSUSE 10.2
Classification: openSUSE
Component: libzypp (show other bugs)
Version: Alpha 3 plus
Hardware: All All
: P5 - None : Critical (vote)
Target Milestone: ---
Assignee: Duncan Mac-Vicar
QA Contact: Stanislav Visnovsky
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-27 04:50 UTC by Andreas Hanke
Modified: 2006-10-25 17:15 UTC (History)
4 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
YaST2 logfiles (18.10 KB, application/x-gzip)
2006-08-27 04:53 UTC, Andreas Hanke
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***