On Sun, Jan 13, 2008, Peter Eisentraut wrote:
> It seems to me that, in principle, if some third package or user environment
> wants something to be done for its own functional benefit, it should be its own
> responsibility to arrange that, instead of bothering thousands of other
> packages with it.
Theoretically, this is supposed to only affect all packages shipping
icons in particular directories; for example, you have to coordinate
addition of cache handling snippets for all packages shipping files
below /usr/share/icons/hicolor otherwise you'll be missing some icons
when you install a package without the snippets.
> On a technical level, the best approach would appear to be
> implementing some sort of global dpkg postinst and postrm hooks.
Yes, "triggers"; I think these were not available at the time of the
first implementations; I did object to the current implementation for
many reasons -- but not to use triggers -- but as I didn't produce any
alternative code, the proposed implementation was merged and is now
what we rely on. I'd very much like if someone would provide a simpler
implementation, which I imagine could be based on triggers.
--
Loïc Minier
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
01-15-2008, 08:40 AM
Josselin Mouette
Bug#460504: dh_desktop/dh_icons madness
Le dimanche 13 janvier 2008 à 22:02 +0100, Loïc Minier a écrit :
> > On a technical level, the best approach would appear to be
> > implementing some sort of global dpkg postinst and postrm hooks.
>
> Yes, "triggers"; I think these were not available at the time of the
> first implementations; I did object to the current implementation for
> many reasons -- but not to use triggers -- but as I didn't produce any
> alternative code, the proposed implementation was merged and is now
> what we rely on. I'd very much like if someone would provide a simpler
> implementation, which I imagine could be based on triggers.
As soon as triggers are available, the current implementation of both
update-desktop-database and update-icon-caches (as well as scrollkeeper)
can be trivially made to use them.
--
.'`.
: :' : We are debian.org. Lower your prices, surrender your code.
`. `' We will add your hardware and software distinctiveness to
`- our own. Resistance is futile.