gnome2*.eclass: Move the preinst conditional out of gnome2_schemas_update
authorMichał Górny <mgorny@gentoo.org>
Sat, 8 Jul 2017 19:52:24 +0000 (21:52 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 8 Sep 2017 07:32:26 +0000 (09:32 +0200)
commit2a148b8258e24e6119885be466f344f31fe22485
tree988575f6cca9f988af41aef811383712d34a4c88
parentedb22af023c9c0f3e4bce5d04d5f42482ffb909c
gnome2*.eclass: Move the preinst conditional out of gnome2_schemas_update

Move the GNOME2_ECLASS_GLIB_SCHEMAS conditional from
gnome2_schemas_update straight into the implementation of gnome2.eclass
postinst/postrm.

This variable is set in preinst to indicate whether any files were
installed. However, the updater itself does not use the list in any way
and updates all the schemas anyway.

Therefore, avoid requiring the ebuilds to explicitly define
preinst/postinst when it is known that the package installs schemas,
and instead let gnome2_schemas_update called in postinst/postrm update
schemas unconditionally.
eclass/gnome2-utils.eclass
eclass/gnome2.eclass