software-o-o
software-o-o copied to clipboard
Avoid installing package for different architecture
OS architecture can be found in User-Agent header of each HTTP request. For example, on my 64bit Tumbleweed, it is:
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
So, If the users' OS is x86_64, we can filter out all ARM, Power port packages.
as I mentioned in the PR, I think this should be up to the user. Displaying what other architectures are available for packages can be useful. Maybe we can have different behaviour for appstore and package search (since one is user-initiated and the other isn't) in this regard. Having a button "display other architectures" on the search result page similar to the "Unsupported Distributions" section on the package view would work well for this I think.
I am working on it. Will detect user selected baseproject. For normal Tumbleweed, Leap system, show i686 and x86_64 packages. For Factory ARM, Factory PowerPC, show aarch64, armv7l, ppc64 packages.
If user haven't chosen a baseproject before, pop up the settings modal and ask for their choices.
I still think we should allow a user to see packages for other archs, e.g. arm when browsing from a x86_64 device. Maybe we could add a new option the to search settings?
You can do it by choosing your baseproject. If you choose opensuse factory arm, you can see aarch64 packages. If you choose opensuse factory power, you can see power pc packages.
only by chance. SLE-15 has 4 archs - and leap ports have 2.
then we need another option to select cpu architecture.