Bug 432932

Summary: zypper cannot remove product
Product: [openSUSE] openSUSE 11.1 Reporter: Klaus Kämpf <kkaempf>
Component: libzyppAssignee: Michael Andres <ma>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P1 - Urgent CC: forgotten_PJpAC5DKqq, holler, ma
Version: Beta 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: zypper.log

Description Klaus Kämpf 2008-10-07 08:59:13 UTC
System has 11.1 beta1 installed and 11.1 beta2 repository added.
Running 'zypper up' results in "product openSUSE to be removed'. Confirming this action does not remove the product. Running "zypper up" again results in the same action.
Comment 1 Klaus Kämpf 2008-10-07 09:00:13 UTC
Created attachment 243854 [details]
zypper.log
Comment 2 Jan Kupec 2008-10-10 06:46:47 UTC
This is what caused removal of the product, as far as the solver is concerned:

[zypp] Product.cc(referencePackage):90 (5430)product:openSUSE-11.1-0.noarch(@System): no reference package found: product(openSUSE) == 11.1-0
[zypp] Product.cc(referencePackage):90 (5429)product:openSUSE-11.1-0.noarch(@System): no reference package found: product(openSUSE) == 11.1-0
[zypp++] PoolItem.cc(setBuddy):148 U__s_(2)product:openSUSE-11.1.x86_64(openSUSE-11.1-Beta2) has buddy U__s_(2583)openSUSE-release-11.1-1.14.x86_64(openSUSE-11.1-Beta2)

Regarding the actual commit, i have no idea why it did not remove the product. Michael, can you look at it?
Comment 3 Michael Andres 2008-10-13 09:08:57 UTC
'no reference package found' indicates that the product is not able to detect the associated reference package. This happens if the product metadata or the release packages provides are faulty.

The package providing the /etc/products.d entry must also provide 
  product(%{prodname}) = %{prodversion}


I could handle this in commit and forcefully remove buddyless /etc/products.d entries. 
Comment 4 Klaus Kämpf 2008-10-13 15:20:55 UTC
(In reply to comment #3 from Michael Andres)
> 'no reference package found' indicates that the product is not able to detect
> the associated reference package. This happens if the product metadata or the
> release packages provides are faulty.
> 
> The package providing the /etc/products.d entry must also provide 
>   product(%{prodname}) = %{prodversion}
> 
> 
> I could handle this in commit and forcefully remove buddyless /etc/products.d
> entries. 
> 

Yes, I would support this.
Entries below /etc/products.d 'belong' to our tools and should be according to the standard. 
Comment 5 Forgotten User PJpAC5DKqq 2008-10-20 04:35:07 UTC
*** Bug 436800 has been marked as a duplicate of this bug. ***
Comment 6 Michael Andres 2008-10-24 14:14:20 UTC
Fixed in libzypp-5.18.0 (openSUSE 11.1)
Comment 7 Hans-Peter Holler 2008-10-24 16:24:25 UTC
*** Bug 438792 has been marked as a duplicate of this bug. ***