Bug 400895

Summary: cannot have two update repositories added
Product: [openSUSE] openSUSE 11.0 Reporter: Marcus Meissner <meissner>
Component: libzyppAssignee: Jan Kupec <jkupec>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P1 - Urgent CC: aj, alofflambas, bugz57, ma, meissner, ro, schubi, tgoettlicher
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: zypper.solverTestCase.tar.bz2
proposed patch

Description Marcus Meissner 2008-06-17 14:53:26 UTC
I have the regular repo and the testing repo added.

And now ... the first patch has broken it already:

rennboot:/etc/zypp/repos.d # LANG=C zypper up 
Reading installed packages...

Problem: cannot install both patch:autoyast2-37.noarch and patch:autoyast2-37.noarch
 Solution 1: do not install patch:autoyast2-37.noarch
 Solution 2: do not install patch:autoyast2-37.noarch

Choose from above solutions by number or cancel [1/2/C]: c
rennboot:/etc/zypp/repos.d # 


its actually the same patch. :(
Comment 1 Marcus Meissner 2008-06-17 14:55:09 UTC
Created attachment 222525 [details]
zypper.solverTestCase.tar.bz2

zypper solver testcae
Comment 2 Stefan Schubert 2008-06-17 15:15:52 UTC
Both patches will be selected by the user:
<install channel="openSUSE-11.0-Updates" kind="patch" name="autoyast2" arch="noarch" version="37" release="" status="UBTu_"/>
<install channel="openSUSE-11.0-test-Updates" kind="patch" name="autoyast2" arch="noarch" version="37" release="" status="UBTu_"/>

I assume user = zypper :-)
Comment 3 Michael Schröder 2008-06-17 15:36:44 UTC
Heh. I talked with schubi about trying to install multiple versions of a patch (which currently also fails), but installing the same patch multiple times is something new ;-)

Anyway, two possibilities: make zypper only install the highest version (and only one patch if multiple patches have the same nevr),
or change the solver that patches don't conflict (which I don't like much because it special cases patches).

Btw, is that just zypper? how does package kit or the UI behave?
Comment 4 Michael Andres 2008-06-18 12:06:33 UTC
(In reply to comment #3 from Michael Schröder)
> 
> Btw, is that just zypper? how does package kit or the UI behave?

UI uses selectables, thus selects only one out of many available patches.

Zypper probably operates on the individual poolitems, therefor selecting all.


Zypper should use selectables or solver requests, 
and avoid individual poolitems.
Comment 5 Jan Kupec 2008-07-08 15:06:12 UTC
*** Bug 406549 has been marked as a duplicate of this bug. ***
Comment 6 Michael Andres 2008-07-10 11:49:53 UTC
*** Bug 394519 has been marked as a duplicate of this bug. ***
Comment 7 Michael Andres 2008-07-10 12:07:22 UTC
*** Bug 356532 has been marked as a duplicate of this bug. ***
Comment 8 Marcus Meissner 2008-07-18 18:33:13 UTC
we will be running into this issue soon, if we are not careful on monday.

even on 1 update repository.

a fix is required ASAP.
Comment 10 Jan Kupec 2008-07-21 15:38:20 UTC
Created attachment 229107 [details]
proposed patch

The patch is trivial. I wonder whether the 'zypper lu' should also be fixed to display only selectables (the candidate objects). Probably yes, but not for 11.0 (?).
Comment 11 Jan Kupec 2008-07-21 15:41:10 UTC
Anja, can you please give me swamp id for this? The fix is for openSUSE 11.0 only.
Comment 14 Jan Kupec 2008-07-22 14:19:38 UTC
submitted for 11.0, fixed also for 11.1 in svn.
Comment 15 Anja Stock 2008-07-23 13:07:54 UTC
released
Comment 16 Jan Kupec 2008-07-29 08:31:04 UTC
*** Bug 406094 has been marked as a duplicate of this bug. ***
Comment 17 Anja Stock 2008-08-12 12:23:24 UTC
released