Dne 27.9.2012 15:05, Cristian Morales Vega napsal(a):
I got this https://build.opensuse.org/request/show/135388
What do you think? It actually solves a real problem: the model of having a copy of everything in our servers doesn't scale. Specially with big game data.
Downloading _anything_ in %post is a bad idea, even for small files. These commands should be included in a script which can be started by users after installation, at the time they want/can download big files. The problem is that the servers (or network in general) might not be available in time of package installation, but they can be available later. (Also this would not work in SUSE Studio as there is no network during build.) And there are other problems with the "script": - you cannot simply retry download again if it fails you would need to reinstall package again (not user friendly) - the script does not check whether the files are already installed, it downloads a new copy at every installation/update - it does not continue failed downloads ("-c" wget option would be nice here) - you cannot simply skip the download and obtain the files via other way or share the downloaded files (i.e. you have 2 computers at home, you need to download the files only once, then you can just copy them to the other machine) - no integrity check, no authenticity check
Problems I can think of: - You don't have control over the external servers. Somebody could modify the files there add hack into users machines. - No information about the files is stored in the RPM database. It's impossible to verify the integrity of the installed package. - It just looks bad, ugly and fragile.
Yes, very fragile. -- Ladislav Slezák Appliance department / YaST Developer Lihovarská 1060/12 190 00 Prague 9 / Czech Republic tel: +420 284 028 960 lslezak@suse.com SUSE -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org