Bug 154976

Summary: [code 10] rug rm lists files twice
Product: [openSUSE] SUSE Linux 10.1 Reporter: Andreas Jaeger <aj>
Component: ZenworksAssignee: Klaus Kämpf <kkaempf>
Status: RESOLVED FIXED QA Contact: Mauro Parra Miranda <mauro>
Severity: Normal    
Priority: P5 - None CC: kkaempf, suse-beta
Version: Beta 6   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Andreas Jaeger 2006-03-03 13:17:48 UTC
$ rug rm opera
Resolving Dependencies...

The following packages will be removed:
  opera 8.52-3
  opera 8.52-3


Proceed with transaction? (y/N) y

Why is opera 8.52-3 listed twice?  It's only installed once!
Comment 1 James Willcox 2006-03-03 20:40:46 UTC
Was this using the libzypp backend, or libredcarpet?
Comment 2 Mauro Parra Miranda 2006-03-03 21:23:12 UTC
I got this, usign libzypp backend.
Comment 3 Klaus Kämpf 2006-03-03 22:19:06 UTC
I've seen this before but can't reproduce with Beta6 and latest packages.

Please provide /var/log/zmd-backend.log and /var/lib/zmd/zmd.db
Comment 4 Tambet Ingo 2006-03-03 22:28:33 UTC
libzypp-zmd-backend resolver adds that extra item to the transactions table.
--> Klaus
Comment 5 Klaus Kämpf 2006-03-03 22:33:28 UTC
I still need the info ;-)
Comment 6 Andreas Jaeger 2006-03-04 17:18:28 UTC
I've downloaded the packages from yesterday and still see the duplicates:
$ rug rm opera
Resolving Dependencies...

The following packages will be removed:
  opera 8.52-3
  opera 8.52-3


Proceed with transaction? (y/N) n
Transaction Cancelled.

$ rpm -q libzypp libzypp-zmd-backend
libzypp-0.0.8-34
libzypp-zmd-backend-0.0.8-34


I'm copying the files now to: ~aj/Export/pr154976
Comment 7 Klaus Kämpf 2006-03-04 19:19:06 UTC
Ok, I can see it now.
There are two entries in the transactions table, one from zmd (input to resolve-dependencies) and one from resolve-dependencies (result of resolving dependencies).

Tambet, how is resolve-dependencies supposed to work ?
Comment 8 Tambet Ingo 2006-03-04 19:49:25 UTC
resolve-dependencies adds _additional_ required items to transactions table.
Comment 9 Klaus Kämpf 2006-03-05 14:47:59 UTC
Ah, makes sense.
I couldn't spot it when reading the original resolve-dependencies.c ;-)

Fixed. Rev 2278.