Bug 208452

Summary: YaST: do not download (as default) all architectures metadata
Product: [openSUSE] openSUSE 11.0 Reporter: Azerion Fagonda <azerion>
Component: libzyppAssignee: Duncan Mac-Vicar <dmacvicar>
Status: RESOLVED FEATURE QA Contact: Klaus Kämpf <kkaempf>
Severity: Enhancement    
Priority: P5 - None CC: adrian.schroeter, andreas.hanke, bart.otten85, coolo, crrodriguez, dmacvicar, ro, schubi
Version: Alpha 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
See Also: https://fate.suse.com/302354
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Azerion Fagonda 2006-09-27 14:14:15 UTC
> Seeing what YaST is doing, I was confused. It starts with downloading
> many .pat-files. For each platform! Not only i386/i586 but also x64 and
> pcc. I will never use those things I guess on an i586-system so why are the
> downloaded? I guess there is a good reason for cause the ZEN/YaST-stuff has
> been many times under the microscope. But could somebody explain it to me?

Azerion

=============================

ZYPP is creating a full cache of all metadata available to be able working 
without the network connection afterwards.

Optimizing this behavior might be a good idea.

Stano

==============================

Only thing that this behavior is usefull:
- if you replace your processor with a new type (and so probably your whole motherboard)
- and you do not have an network connection.

For all those other situations (read: 99.99%) I think it is a bloat.

Azerion
Comment 1 Klaus Kämpf 2006-10-03 16:51:55 UTC
Patches are coming from autobuild as 'noarch', only the patch dependencies reveal  (eventual) architecture restrictions.
Usually, fixes to SLE10 are applied to the source code which is recompiled for all architectures. Splitting it up into separate architectures probably doesn't gain us much.

Maybe Harald can comment 
Comment 2 Azerion Fagonda 2006-10-03 16:59:32 UTC
I don't talk about patches but about YaST sw-single. Sorry for not saying that. That patches are noarch I can understand. But sw_single does download all .pat while I only will use i386/i586.
Comment 4 Azerion Fagonda 2006-10-03 17:12:03 UTC
Thank you Andres for making my posts much understandable. :D. That is exacly what I mean.
Comment 5 Azerion Fagonda 2006-10-03 17:13:56 UTC
However, I see now that those files are really small and I guess I had a super-slow repo cause I could read all those urls while it was downloading thos little kb's.

- nice and clean: detection and only 1 file download
- fast: just let it stay this way and focus on other bugs :D
Comment 6 Harald Mueller-Ney 2006-10-12 08:54:19 UTC
Patterns are installation/software management related.
I expect Stano could drive this
Comment 7 Bart Otten 2006-10-17 22:11:49 UTC
*** Bug 207602 has been marked as a duplicate of this bug. ***
Comment 8 Klaus Kämpf 2006-10-30 09:57:04 UTC
I'm not sure if splitting (the relatively small) pattern files by arch is worth it.
Comment 9 Magnus Boman 2007-04-02 11:58:14 UTC
*** Bug 250451 has been marked as a duplicate of this bug. ***
Comment 10 Magnus Boman 2007-04-02 11:59:46 UTC
In response to Comment#8, it makes a world of a difference! For me, each pattern file takes 3-5 seconds (at least) to download. And considering how many new pattern files we're currently creating, this should be considered!
Comment 12 Klaus Kämpf 2007-06-14 12:35:23 UTC
Will be fixed in future versions
Comment 13 Bart Otten 2007-06-14 12:46:40 UTC
We are living in the future since this (sort of) bug was reported on 2006-09-27 :-S. As YAST has the name of being slow I guess every little tweak is a step in the right direction......
Comment 14 Klaus Kämpf 2007-10-05 09:10:28 UTC
Revisit in preparation of Code11
Comment 15 Klaus Kämpf 2007-10-09 08:44:04 UTC
Dropping bi- (resp. tri-) arch repositories is planned for the future.

CCing Adrian (for buildservice) and Duncan (for libzypp)
Comment 16 Klaus Kämpf 2007-10-10 11:51:55 UTC
Reassign to release manager. Please stop using multi-arch repositories in the future.
Comment 17 Stephan Kulow 2007-10-10 12:35:50 UTC
I think multi-arch repos is not the problem. multi-arch meta files are. So I first want a standard defined how we can have multiple products/architectures in one repo, before we go ahead here.
Comment 18 Duncan Mac-Vicar 2007-10-11 10:37:43 UTC
I agree with comment #17, multi arch repos is not the problem.

Same with main, non-OSS, debuginfo. You don't need to have them in different repos but to sort them in modules and allow the user to subscribe different modules.

debian does it since ages.
Comment 19 Klaus Kämpf 2007-10-19 12:58:01 UTC
Then we should do it similarly
Comment 20 Duncan Mac-Vicar 2007-11-09 15:56:56 UTC
Pattern filter at download is in 10.3

We should additionally split package metadata per architecture (and why not per module) and download only the needed one. Relevant information in this bugreport was added to feature #302354. Closing this bugreport.
Comment 21 Stephan Kulow 2008-06-25 09:10:30 UTC
mass reopening of later+remind bugs of 11.0
Comment 22 Bart Otten 2008-06-25 09:34:30 UTC
"Relevant information in this bugreport was added to feature #302354. Closing this bugreport."

So I do again after mass re-opening.
Comment 23 Stephan Kulow 2008-06-25 10:04:40 UTC
then it had the wrong resolution, should have been FEATURE