Mailinglist Archive: zypp-devel (58 mails)
| < Previous | Next > |
Re: [zypp-devel] [Fwd: SuSEconfig and PackageKit]
- From: Stanislav Brabec <sbrabec@xxxxxxx>
- Date: Fri, 23 Jan 2009 13:11:43 +0100
- Message-id: <1232712703.7744.3860.camel@xxxxxxxxxxxxxx>
Jan Kupec wrote:
Yes. If you are using RPM directly, call SuSEconfig.
Well, YAST_IS_RUNNING is not implemented in most packages.
Implementing it to packages would make zypper installation much slower
than YaST and will require following change in ~500 packages (including
KDE, XFCE and other non-GTK+ desktop applications...):
%posttrans
if test -t "$YAST_IS_RUNNING" ; then
if test -f /usr/bin/gtk-update-icon-cache ; then
/usr/bin/gtk-update-icon-cache
fi
if test -f /usr/bin/update-desktop-database ; then
/usr/bin/update-desktop-database
fi
fi
--
Best Regards / S pozdravem,
Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: sbrabec@xxxxxxx
Lihovarská 1060/12 tel: +420 284 028 966, +49 911 740538747
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
Zypper should as well. But does not. It may have ugly sonsequences while
installing some packages (missing icons, MIME binding,...)
Just to avoid confusion: are you sure? That would imply the need to run
SuSEConfig after any 'rpm -i/-U'!
Yes. If you are using RPM directly, call SuSEconfig.
https://bugzilla.novell.com/show_bug.cgi?id=365649
That was a bug in the package, the package can't just rely on SuSEConfig
will be run after it installs. Only in case YAST_IS_RUNNING is set (as
jsrain pointed out in his mail).
So while i agree with you that this needs to be solved at rpm level (as
you pointed out in the other mail), it
is not true zypper should run SuSEConfig because bugs in packages can
have consequences if it is not run. Please let's be clear on that.
Well, YAST_IS_RUNNING is not implemented in most packages.
Implementing it to packages would make zypper installation much slower
than YaST and will require following change in ~500 packages (including
KDE, XFCE and other non-GTK+ desktop applications...):
%posttrans
if test -t "$YAST_IS_RUNNING" ; then
if test -f /usr/bin/gtk-update-icon-cache ; then
/usr/bin/gtk-update-icon-cache
fi
if test -f /usr/bin/update-desktop-database ; then
/usr/bin/update-desktop-database
fi
fi
--
Best Regards / S pozdravem,
Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: sbrabec@xxxxxxx
Lihovarská 1060/12 tel: +420 284 028 966, +49 911 740538747
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |