Bug 746073

Summary: When adding addon product with wrong architecture, no error or warning is raised, operation just silently fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Pluskal <mpluskal>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED WONTFIX QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P3 - Medium CC: holgi, locilka, ma, mpluskal
Version: Current   
Target Milestone: ---   
Hardware: All   
OS: SLES 11   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2logs

Description Martin Pluskal 2012-02-09 11:22:42 UTC
Where:
iSeries ppc64, SLES-11-SP2-Build0747
Steps to reproduce:
1) Run yast2
2] Select Software/Add-on products
3) Click add/http/edit complete url
4) Enter path to online repository (in this case http://dist.suse.de/install/SLP/SLE-11-SP2-SDK-LATEST/ia64/DVD1/ )
5) Next, Agree to licence terms
6) Everything than seems to proceed normally, until I am returned to Installed Add-on products menu, where I don't see any product added.
Expected results:
Upon adding product/repository with wrong architecture, error should be raised. It is not clear what happened when everything seems to proceed normally.
Comment 1 Martin Pluskal 2013-02-04 10:03:14 UTC
Created attachment 523186 [details]
y2logs
Comment 2 Martin Pluskal 2013-02-04 10:04:47 UTC
Comment on attachment 523186 [details]
y2logs

The isssue is still present on SLES11SP3 alpha3 - this time I tried to add ppc sdk to x86_64 machine.
Comment 3 Anja Stock 2013-03-05 10:30:10 UTC
Jiri, is this bug properly assigned? Did you meanwhile find the time to look into this?
Comment 4 Ladislav Slezák 2016-03-31 08:48:25 UTC
The main problem is that libzypp hides the incompatible packages, YaST cannot even know that there some packages for another architectures at the add-on repository.


Michael, is there any way how Yast could detect a repository intended for other architecture?

I know it's a bit tricky as you might have e.g. an addon with noarch + ia64 packages where the x86_64 packages could be already included in the base product or would not be needed at all so you would need only the noarch packages on x86_64.

But at least we could display a hint or a warning that the added addon looks suspicious if there are packages for other architectures but not for the current one.


(This sounds like duplicate to me, IIRC there already was a similar bug report, but I cannot find it now...)
Comment 5 Michael Andres 2016-04-04 15:21:11 UTC
(In reply to Ladislav Slezák from comment #4)
> Michael, is there any way how Yast could detect a repository intended for
> other architecture?

AFAIK repo metadata do not contain a hint about the 'intended architectures'.
You could display a hint if the repo contains just noarch packages?
Comment 6 Lukas Ocilka 2016-11-30 15:57:20 UTC
Switching it to "openSUSE" to make it accessible for external people.
Comment 7 Ladislav Slezák 2019-02-05 08:45:38 UTC
Sorry, no time to implement this...