Re: [opensuse-packaging] rpmlint-checks: adding new gnome/desktop-related checks
On Mon, Jan 17, 2011 at 10:39:03AM +0100, Michael Andres wrote:
On Sunday 16 January 2011 19:44:50 Cristian Morales Vega wrote:
FWIW, if instead of calling gtk-update-icon-cache on each package installation you change the %icon_theme_cache_post(un) macros to use ZYpp's update-scripts (http://lists.opensuse.org/zypp-devel/2010-06/msg00005.html) you have my vote to add those checks today. That should solve any problem with the installer.
Michael, are update-scripts still the best way to run something that needs to be done for a lot of packages and it is enough if it's run once after all packages have been installed
On libzypp level, yes. http://old-en.opensuse.org/Software_management/Code11/Scripts_and_Messages
Or there is something new in the RPM version from 11.4 ("Collections", ....
We should ask Michael
about the "Collections". He knows best about the rpm version available on 11.4.
11.4 is going to ship with rpm-4.8.0, like 11.3 (rpm-4.9 is not yet released.) AFAIK 4.8.x doesn't support Collections, that's a 4.9.x feature. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Le lundi 17 janvier 2011, à 11:41 +0100, Michael Schroeder a écrit :
On Mon, Jan 17, 2011 at 10:39:03AM +0100, Michael Andres wrote:
On Sunday 16 January 2011 19:44:50 Cristian Morales Vega wrote:
FWIW, if instead of calling gtk-update-icon-cache on each package installation you change the %icon_theme_cache_post(un) macros to use ZYpp's update-scripts (http://lists.opensuse.org/zypp-devel/2010-06/msg00005.html) you have my vote to add those checks today. That should solve any problem with the installer.
Michael, are update-scripts still the best way to run something that needs to be done for a lot of packages and it is enough if it's run once after all packages have been installed
On libzypp level, yes. http://old-en.opensuse.org/Software_management/Code11/Scripts_and_Messages
I'm not sure update-scripts would work here. My understanding is that a script owned by package X is run after package X is installed. What we would need here is that a script owned by package X is run after package A, B, C or D is installed. Also, the wiki page says: "It is an exceptional case and should be treated as such.", which wouldn't be the case here. Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
2011/1/17 Vincent Untz
Le lundi 17 janvier 2011, à 11:41 +0100, Michael Schroeder a écrit :
On Mon, Jan 17, 2011 at 10:39:03AM +0100, Michael Andres wrote:
On Sunday 16 January 2011 19:44:50 Cristian Morales Vega wrote:
FWIW, if instead of calling gtk-update-icon-cache on each package installation you change the %icon_theme_cache_post(un) macros to use ZYpp's update-scripts (http://lists.opensuse.org/zypp-devel/2010-06/msg00005.html) you have my vote to add those checks today. That should solve any problem with the installer.
Michael, are update-scripts still the best way to run something that needs to be done for a lot of packages and it is enough if it's run once after all packages have been installed
On libzypp level, yes. http://old-en.opensuse.org/Software_management/Code11/Scripts_and_Messages
I'm not sure update-scripts would work here. My understanding is that a script owned by package X is run after package X is installed. What we would need here is that a script owned by package X is run after package A, B, C or D is installed.
After looking into it now I'm not really sure. But anyway it would require a new "SourceX:", a new line in "%install" and then the scriplet... three independent lines. So yes, I would just forget about this and wait for Collections that with some luck will be available in 11.4+1. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
Cristian Morales Vega
-
Michael Schroeder
-
Vincent Untz